Page 1 of 1

Multiple decisions with boolean operator (newbie)

Posted: Sun Nov 11, 2007 12:59 am
by MJU
How can I make a decision based on a boolean operators?
Is it possible to make this decision in one time?

temp >200 AND temp <400

Can I do this without using multiple decisions?
Can someone post a decision that is based on boolean operators?
An example:

(temp >200 AND temp <400) OR (temp=tempmax AND temp<>tempmin)

Is this possible in Flowcode in one time?
Where temp, tempmax and tempmin are variables?

Posted: Sun Nov 11, 2007 9:36 pm
by Steve
This is possible, but you will need to use "&&" instead of "AND" - the "AND" is for a "bitwise" AND.

Posted: Sun Nov 11, 2007 9:42 pm
by MJU
steve wrote:This is possible, but you will need to use "&&" instead of "AND" - the "AND" is for a "bitwise" AND.
Okay thank you!
What for OR and other Boolean operators?

(great product Flowcode! :D )

Posted: Mon Nov 12, 2007 9:21 am
by Steve
"||" is for a boolean/logical OR.