Custom Condition
This task will execute a custom Expression and continue the workflow with the path you set with return value.
This task could be used to initiate $env variables, for example.
The only requirement of this task is to return “yes” or “no” to define the output the workflow should take.
Example 1
This example will init some variables and continue in any situation with the “true”/“yes” output.
$env["variable"] = false;
$env["variable2"] = 1;
return "yes";
$env["variable2"] = 1;
return "yes";
Example 2
This example will process values, the user input during a request form.
$output = "no";
if($env["value"]["checkbox"] == "on") {
$output = "yes";
}
return $output;
if($env["value"]["checkbox"] == "on") {
$output = "yes";
}
return $output;