Conditional
formatting...Task executes one or more other tasks based on condition.
This is useful when a set of tasks should be executed if condition is True, and another set of tasks if condition is False.
All tasks created between conditional if and
conditional end will be wrapped in this instance and executed conditionally.
If the task has its own name attribute, it will be prefixed with this tasks name.
The conditional else step expression is optional, if not used no additional tasks will be executed if
condition is false.
Step implementations
Statistics
Executions of this task will be visible in locust request statistics with request type COND. name is suffixed with <condition> (<n>),
where <condition> is the runtime resolved condition and <n> is the number of tasks that is executed for the resolved condition. Each task in
the set for condition will have its own entry in the statistics, see respective tasks documentation.