Page 1 of 1

more than 2 conditions in task

Posted: Fri Sep 14, 2007 3:08 am
by peter
Hi Scott,

I found that an AND operator has higher priority than OR in task conditions. Is there any possibility to get it working with higher prio for OR?

peter

Posted: Fri Sep 14, 2007 9:58 am
by ScottBot
Unfortunately in Tasks there is no condition grouping within a block to control the evaluation precedence. So you have to get a little creative with the order of the conditions in the task block or use multiple task blocks (else ifs) or even multiple Tasks (Task calling other Tasks) to get anything beyond the fairly simple logic to work. You may also want to consider running a Script to evaluate the condition and handling the logic in VB.

If you think it's a bug (not just a bi-product of the simple Task language), give me a specific example so I can test.