Page 1 of 1

what is the syntax for Oring and anding in Flowcode loops

Posted: Wed Nov 26, 2008 6:28 pm
by zenzehar
what is the syntax for Oring and anding in Flowcode loops ... like while(A=1 || B=1 || C=1 )... thx very much and best regards

Re: what is the syntax for Oring and anding in Flowcode loops

Posted: Thu Nov 27, 2008 9:24 am
by Steve
The terms "OR", "AND", etc. refer to bitwise operations (i.e. the equivalent of a single | or & in C). Flowcode uses || for logical "or" and && for logical "and".

So you are correct, but you may need to have brackets:

Code: Select all

(A=1) || (B=1) || (C=1)