what is the syntax for Oring and anding in Flowcode loops
what is the syntax for Oring and anding in Flowcode loops
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
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: what is the syntax for Oring and anding in Flowcode loops
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:
So you are correct, but you may need to have brackets:
Code: Select all
(A=1) || (B=1) || (C=1)