When should I use OR, and how does it evaluate multiple conditions?

When should I use OR, and how does it evaluate multiple conditions?

OR is a Condition type in FYERS Automate that allows your automation to move forward when at least one of the added conditions becomes true. You should use OR when you want your strategy to react to multiple possible scenarios, but it is enough for any one of them to occur.

OR conditions are commonly used for exits, safety checks, or alternate paths, where different market situations should lead to the same next action.

How OR evaluates multiple conditions

When you add multiple conditions inside an OR block, Automate evaluates all of them repeatedly at the set check interval. The moment any one condition becomes true, the OR block is satisfied and the automation moves forward.

The remaining conditions inside the OR block are not required to become true. Once one condition passes, the OR block completes.

Simple examples

Example 1:
You want to exit a trade if either of these happens: price moves below a support level OR total loss crosses −₹2,000. As soon as either condition becomes true, the automation proceeds to the exit step.

Example 2:
You want to take action if volume spikes OR the price breaks a key resistance. Even if only one of these occurs, the OR condition allows the automation to continue.

When should you use OR?

  • When multiple different situations should trigger the same next step.
  • When you want flexibility instead of strict rule matching.
  • When managing exits based on alternative risk conditions.
  • When reacting to market movement or account-level limits.
Notes: OR requires only one condition to be true. If multiple conditions become true at the same time, the automation still proceeds only once. OR does not prioritise conditions; all are treated equally.



What if...

ScenarioWhat happens
Only one condition becomes trueThe OR block is satisfied and the automation moves forward.
Multiple conditions become trueThe automation still proceeds once; extra conditions are ignored.
None of the conditions become trueThe automation waits and does not move forward.
I need all conditions to be trueUse AND instead of OR.

Last updated: 22 Dec 2025