Support composite boolean expressions
huderlem opened this issue · 1 comments
huderlem commented
Currently, if
conditions aren't true expressions. They only support a single comparison. However, it would clearly be more useful if you could combine comparisons to check multiple conditions.
script Foo {
# Example condition
if (var(VAR_1) == 1 && flag(FLAG_1) == true || (var(VAR_2) == 2 || var(VAR_3) < 2)) {
...
}
}
This would also apply to elif
, while
, do/while
, etc.