From b5bf4a324df1723bae7f00df6c52816ed30a5cf2 Mon Sep 17 00:00:00 2001 From: djragsdale Date: Sat, 17 Jul 2021 22:12:11 -0400 Subject: [PATCH] Update example in readme --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 689ded9..b252603 100644 --- a/README.md +++ b/README.md @@ -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)