A conditional structure "If - Then - Else". If the conditions are true, the Then container is executed, otherwise, the Else container is executed.
| Name | Description | Accept variable | Required | Since |
|---|---|---|---|---|
| name | The name of the If | - | - | 6.10 |
| description | The description of the If | - | - | 6.10 |
| conditions | The list of conditions to evaluate | - | ✓ | 6.10 |
| match | The "match" value can be:
any. | - | - | 6.10 |
| then | The Then container | - | ✓ | 6.10 |
| else | The Else container | - | - | 6.10 |
Use the following syntax to define conditions: [(condition)(, condition)*]
Use the following syntax to define condition: "'operand1 (operator) (operand2)?"
Operator value can be:
equals==not_equals!=containsnot_containsstarts_withnot_starts_withends_withnot_ends_withmatch_regexpnot_match_regexpgreater>greater_equal>=less<less_equal<=existsnot_existsIf at least one condition of the listed evaluate to true, then execute a request, else execute a delay.
actions stepsif nameMy If-Then-Else descriptionMy description conditions"'${variable1}' equals 'value'""'${variable2}' equals '2'""'${variable3}' == 'string with space'""'${variable4}' != stringwithoutspace""'${variable5}' not_exist""'${variable6}' exist""'${variable7}' == ''""'${variable8}' equals \"value'with'simple'quote\"""'${variable9}' equals 'value\"with\"double\"quote'""'${variable10}' equals 'value\\'with"simple\\'and"double\\'quote'""'' == ''" matchany then descriptionMy then description sla_profileMySLAProfile1 stepsrequest urlhttp//www.neotys.com/ else descriptionMy else description sla_profileMySLAProfile2 stepsdelay3m 200ms