Skip to content

Commit

Permalink
Update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
djragsdale committed Jul 18, 2021
1 parent 9c44bcb commit b5bf4a3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,26 @@ VAR STRING $Input
ECHO "Testing everything..."
INPUT $Input "What should I output?"
LET $VAR1 = 0
FUNC FLOAT:Add FLOAT:$F1 FLOAT:$F2
RETURN ($F1 + $F2)
ENDFUNC
ECHO "ECHOING HELLO WORLD 2 TIMES"
WHILE ($VAR1 < 2)
LET $VAR1 = 0
WHILE ($VAR1 < 3)
ECHO "HELLO, WORLD!"
PAUSE 1
IF ($VAR1 > 0)
ECHO "$VAR1 is more than 0"
ELSE
ECHO "$VAR1 is not more than 0"
ENDIF
LET $VAR1 = Add [$VAR1, 1]
ENDWHILE
IF ($VAR1 > 1)
ECHO "$VAR1 is more than 1"
ENDIF
PROC EchoDone
ECHO "DONE LOOPING."
ECHO ("You typed: " & $Input)
Expand Down

0 comments on commit b5bf4a3

Please sign in to comment.