You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions of kOS you could write this in immediate mode at the terminal prompt and it would wait until you entered the final end brace ("}") before executing the "until" command:
set x to 1.
until x > 5 {
print x.
set x to x + 1.
}.
1
2
3
4
5
But in this new version it attempts to evaluate the "until" expression immediately as soon as you type the header line and hit 'enter', and thus gives a syntax error.
set x to 1.
until x > 5 {
syntax error at line 1
until x > 5 {
^
In the new version you'd have to type it all in in one line to make it work, like so:
until x > 5 { print x. set x to x + 1.}.
I noticed this because I was trying to test a few things out and therefore was typing syntax in at the terminal.
The text was updated successfully, but these errors were encountered:
In previous versions of kOS you could write this in immediate mode at the terminal prompt and it would wait until you entered the final end brace ("}") before executing the "until" command:
But in this new version it attempts to evaluate the "until" expression immediately as soon as you type the header line and hit 'enter', and thus gives a syntax error.
In the new version you'd have to type it all in in one line to make it work, like so:
I noticed this because I was trying to test a few things out and therefore was typing syntax in at the terminal.
The text was updated successfully, but these errors were encountered: