glox/tests/if.lox

10 lines
162 B
Text
Raw Permalink Normal View History

2024-10-06 17:15:50 +03:00
var a = 1;
var b = 2;
if (a == b or b - a > 0) print a + b;
if ( 1 and 2 ) print "and";
if ( 1 and 2 and 3 and false ) else print "else";
print nil or "yes";