Files
Nasal-Interpreter/version2.0/test/choice.nas
T
Valk Richard Li 7474930712 Update
2020-01-21 16:13:06 +08:00

28 lines
403 B
Plaintext

var condition_true=1;
var condition_false=0;
if(condition_true)
{
var a=1;
}
else if(!condition_false)
{
var b=1;
}
elsif(!condition_true and condition_false)
{
print("impossible");
}
else
{
var c=1;
}
if(condition_true)
var a=1;
else if(!condition_false)
var b=1;
elsif(!condition_true and condition_false)
print("impossible");
else
var c=1;