Multiple decisions with boolean operator (newbie)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times

Multiple decisions with boolean operator (newbie)

Post 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?

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

This is possible, but you will need to use "&&" instead of "AND" - the "AND" is for a "bitwise" AND.

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times

Post 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 )

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

"||" is for a boolean/logical OR.

Post Reply