Warning: Join these conditions with {wanted}
Under {"conditionAnd":"double-ampersand"}, the conditions of an If, ElseIf, While or
Do ... While joined by a comma are reported, as in If a, b. Under "comma", conditions
joined by && are reported. Both forms stop at the first false condition. ObjectScript
evaluates operators left to right, so If n >= low && n <= high means
((n >= low) && n) <= high. Join the conditions as the message says, with parentheses
around each condition that has operators of its own.
IRIS compiles the example. Checked with the style {"conditionAnd":"double-ampersand"}.
Class Demo.AndOperator
{
ClassMethod InRange(n As %Integer, low As %Integer, high As %Integer) As %Boolean
{
If n >= low, n <= high Quit 1 //! S7442
Quit 0
}
}