The logical expression in Choose <> logical expression for IF, Loop {until|while}

Dont know if this is a help doc issue or not.

The Logical Expression (LE) in Choose(LE,true,false) doesnt work in the same way as If LE, Loop { until | while } LE.

You’ll get different results.

The help page for ‘logical expressions’ only mentions If, loop { until | while } but not ‘choose’ so maybe thats a clue even though the help doc for choose returning true or false suggests the ‘condition’ is a logical expression!

If you just use

CHOOSE(LE)

OR

 CHOOSE(NOT LE,FALSE,TRUE)

Then you should get the result you expect.

With your rendition, it uses value of LE to select the values. e.g., If LE = 2, you will get FALSE.

e.g., you are passing an “expression” instead of a “condition” as described in the help.

Spookily confident there @jslarve !

You’re welcome, Richard.

Im sticking with the IF statements its less characters to type, and I can avoid any ambiguity from the use of Choose.