ONLang/examples/example.yaml

33 lines
521 B
YAML

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
- Test
- Input a var
- let:
name:
input: "Your name: "
- print:
- "Bye, "
- var: name
- "!"