Views: 2716 (Data available since 06.02.2017)

The structure permits you to direct a business process according to different scenarios depending on preset conditions.

The conditions are checked from left to right. If a condition is met, the actions located in the branch below will be executed. If a condition is not met, the condition located to the right will be checked, and so forth until one of the conditions is met.


Condition Type – PHP Code

The code is indicated as a condition.

If the indicated PHP code returns the value true, the branch of actions below such a condition will be executed; if false is returned, the next condition will be checked.

Note: Only a user with administrator’s rights can set a PHP code.

Attention! Only a PHP code can be used for this type of condition. The parameters of the type {=Variable:Variable2_printable} are not supported.

The code executed in the condition must also result in a logical expression (true or false).


Condition Type – Document Field

This action branch of the condition will be executed if the parameters related to the document fields coincide.


Condition Type – Variable Value

This action branch of the condition will be executed if the parameters related to business process variables coincide.

Note: The values of both variables and template parameters can be used in this type.


Condition Type – TRUE

This action branch will be executed immediately. This condition is always met.


Attention! If no condition is met, the business process will continue executing the actions located under the Condition structure. In other words, it will 'skip' the structure.



Courses developed by «Bitrix», Inc.