# SequenceFlow Sequence flow behaviour. # Conditional flows All outbound sequence flows can have conditions. Flows are evaluated in sequence. Default flow will be taken if no other flow was taken. Example source: ```xml next(null, this.environment.variables.take4); ${environment.variables.take5} `; ``` Sequence flows: - `to-task2`: default flow. If no other flow was taken then default flow is taken - `to-task3`: unconditional. Flow is taken - `to-task4`: script condition. Callback (next) is called with environment variable as result. If result is truthy the flow is taken, otherwise discarded - `to-task5`: expression condition. Expression will be evaluated and passed as result. If result is truthy the flow is taken, otherwise discarded