a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
34 lines
392 B
Text
34 lines
392 B
Text
var a = 12;
|
|
var b = a * 2;
|
|
|
|
{
|
|
var b = a * 3;
|
|
a = 42;
|
|
print b;
|
|
}
|
|
|
|
print a;
|
|
print b;
|
|
|
|
if (5 > 4)
|
|
print "it's true";
|
|
else
|
|
print "it's false";
|
|
|
|
if (false)
|
|
print "it's not true";
|
|
|
|
if (true and false)
|
|
print "won't happen";
|
|
|
|
if (true or false)
|
|
print "will happen";
|
|
|
|
var n = 5;
|
|
while (n > 0) {
|
|
print "counting down";
|
|
n = n - 1;
|
|
}
|
|
|
|
for(var i = 0; i < 10; i = i + 1)
|
|
print "bla";
|