ONLang/examples/example.yaml

34 lines
521 B
YAML
Raw Normal View History

2022-08-06 17:19:50 +03:00
main:
- let:
i: 0
- loop:
- if:
condition:
comp:
- var: i
- ">="
- 10
body:
- "\n"
- break
- assign:
i:
calc:
- var: i
- +
- 1
- print:
- "\ri = "
- var: i
- sleep: 500
2022-08-06 18:24:12 +03:00
- Test
2022-08-06 17:19:50 +03:00
- Input a var
- let:
name:
input: "Your name: "
- print:
- "Bye, "
- var: name
- "!"