The Condition step is used to branch between different paths in your spell based on certain criteria. For example, imagine you are building a spell to screen job applicants based on their resume’s content. You may want to look for certain keywords, and can use the Condition step to create two paths: one for moving forward with the candidate, and another for rejecting them.Documentation Index
Fetch the complete documentation index at: https://docs.respell.ai/llms.txt
Use this file to discover all available pages before exploring further.
Options
The Condition step has a custom options panel. There are two high-level concepts:- Paths
- Conditions
- First value
- Condition operator
- Second value
| Operator | Description |
|---|---|
| equals | Whether the first value exactly matches the second value. |
| is not | |
| is in | |
| is not in | |
| is less than | Whether the first value is less than the second value. If either of the values are not numbers (and cannot be converted to numbers), this will be false. |
| is less than or equal to | Whether the first value is less than or equal to the second value. If either of the values are not numbers (and cannot be converted to numbers), this will be false. |
| is greater than | Whether the first value is greater than the second value. If either of the values are not numbers (and cannot be converted to numbers), this will be false. |
| is greater than or equal to | Whether the first value is greater than or equal to the second value. If either of the values are not numbers (and cannot be converted to numbers), this will be false. |
| contains | Whether the first value is contained anywhere within the second value. |
| starts with | Whether the first value begins with the second value. |
| ends with | Whether the first value ends with the second value. |

