Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:extensions:workflowdesigner:tasks:flow:custom_condition [2014/10/15 12:26]
swarnat
en:extensions:workflowdesigner:tasks:flow:custom_condition [2021/09/20 00:03] (current)
swarnat
Line 1: Line 1:
 ====== Custom Condition ====== ====== Custom Condition ======
  
-<WRAP center round important>​ +https://manuals.redoo-networks.com/wiki/​manuals/​view/​Workflow%20Designer/​Workflow%20Actions/​Process%20Flow/Custom%20Condition/#
-To use this block you need basic PHP development skills! +
-</WRAP> +
- +
-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. +
- +
-<code php> +
-$env["​variable"​] = false; +
-$env["​variable2"​] = 1; +
-return "​yes";​ +
-</code> +
- +
-== Example 2 == +
- +
-<code php> +
-$output = "​no";​ +
-if($env["​value"​]["​checkbox"​] == "​on"​) { +
-$output = "​yes";​ +
-+
-return $output; +
-</code>+