skopy/features/conds.sk

63 lines
491 B
Plaintext
Raw Normal View History

2024-04-02 17:16:22 +00:00
var a = 4
if true
a = 5
end
assert a eq 5
if false
a = 12
end
assert a eq 5
if true
a = 1
else if true
a = 2
else if true
a = 3
else
a = 4
end
assert a eq 1
if false
a = 1
else if true
a = 2
else if true
a = 3
else
a = 4
end
assert a eq 2
if false
a = 1
else if false
a = 2
else if true
a = 3
else
a = 4
end
assert a eq 3
if false
a = 1
else if false
a = 2
else if false
a = 3
else
a = 4
end
assert a eq 4