As known from languages like Java and C++ you can use the write compact if expression in the following form:
condition ? trueExpr : falseExpr
Some examples of use:
.var x= true ? "hello" : "goodbye" // Sets x = "hello" .var y= [20<10] ? 1 : 2 // Sets y=2 .var max = a>b ? a:b .var debug=true inc debug ? $d020:$d013 // Increases $d020 since debug=true .var boolean = max(x,minLimit==null?0:minLimit) // Takes care of null limit