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.
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.
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.
| Scenario | What happens |
|---|---|
| Only one condition becomes true | The OR block is satisfied and the automation moves forward. |
| Multiple conditions become true | The automation still proceeds once; extra conditions are ignored. |
| None of the conditions become true | The automation waits and does not move forward. |
| I need all conditions to be true | Use AND instead of OR. |
Last updated: 22 Dec 2025