Location: L'ville, GA
Tom is correct that is the "normal" way for a scan to be structured.
However, if the Return value from the called function is itself a true/false flag, no other Boolean operators or syntax are needed.
That is, if myindicator() returns 0, it is interpreted as "false" … if it returns -1 (or any other nonzero value), it is interpreted as "true".
Or you can combine it (as a T/F value) with other logical conditions, such as:
myindicator() And Sma(V,50) > 1e5
Click here for a pretty extensive explanation about how and why the zero and nonzero answers are treated as false and true, plus a bunch of other interesting (to some people :-) factoids regarding Boolean math in OLang and OScript.
[Edited by Jim Dean on 7/19/2015 4:05 AM]