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
Additionally, an arbitrary amount of else if blocks can be supplied:
var num := Math.rand(3);
if num == 1 {
print "Random number was 1"
} else if num == 2 {
print "Random number was 2"
} else if num == 3 {
print "Random number was 3"
} else {
print "Random number was #{num}"
}
I thought that var foo := bar was legacy and no longer valid.
The text was updated successfully, but these errors were encountered:
Page in question.
I thought that
var foo := bar
was legacy and no longer valid.The text was updated successfully, but these errors were encountered: