We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if
else
In the following example we can see that the assignment to a in the if branch prevents the else branch from reusing the cached operation a + 1.
a
a + 1
let a = Math.rand(10) print(a + 1) if (a > 5) { a = 2 } else { print(a + 1) } printFlush()
Output:
op rand &t0 10 op floor a:1:4 &t0 op add &t1 a:1:4 1 print &t1 jump 7 lessThanEq a:1:4 5 set a:1:4 5 jump 9 always op add &t2 a:1:4 1 print &t2 printflush message1
Version: latest (cd75edd)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following example we can see that the assignment to
a
in theif
branch prevents theelse
branch from reusing the cached operationa + 1
.Output:
Version: latest (cd75edd)
The text was updated successfully, but these errors were encountered: