Agent Script Reference: Conditional Expressions
if else conditions deterministically specify what actions to take or which prompts to include. For example, you can check a variable's value and then run an action based on the result:
You can also check a variable in order to set other variables.
You can use a conditional expression to determine which natural-language prompt to include.
Currently, Agent Script supports if else but doesn't support else if.
Related Topics