Configure variables
    • PDF

    Configure variables

    • PDF

    Article summary

    In this article you will find configuration instructions for conditions and actions referring to variables.

    Variables are placeholders in a logical or mathematical expression that contain changeable values. To use variables in rules, you must first create them in the form of an action. You can then refer to it within the same rule.

    đź’ˇVariables are only valid within the rule in which they are created. A variable can therefore not be used in another rule.


    Comparison of a variable with a numerical value

    Condition: A user-defined variable is compared with a value. If the condition is met, the platform executes the action.

    1. Next to The following rule is triggered, select the option always.

    2. Click on +Add an action > Select and action > Create a number variable.

    3. Name the variable and enter a value or a calculation.

    4. Click on +Add new action > Add a conditional action.

    5. Click on Select a condition > If a variable is > / < / = /… a number

    6. Under Variable value, select the variable you have just created.

    7. Select the operator under equals.

    8. Define the numerical value with which you are comparing the variable.
      Options:

      1. Enter a numerical value in the gray field or

      2. Select a number field from the questionnaire under Answer value. The platform uses this to compare the variable with the number stored by the user or

      3. Under Variable value, select a user-defined variable or

      4. Under Product attribute value, select an attribute from the product data. The platform then compares the variable with the values of the selected table column.

    9. Click on Select an action next to if yes and/or if no and configure the desired action.

    Workbench:

    Result Page:


    Comparison of a variable with a text

    Condition: A user-defined variable is compared with a text. If the condition is met, the platform executes the action.

    1. Next to The following rule is triggered, select the option always.

    2. Click on +Add an action > Select and action > Create a text variable.

    3. Name the variable and enter a text.

    4. Click on +Add new action > Add a conditional action.

    5. Click on Select a condition > If a variable is equal to / contains… a text

    6. Under Variable value, select the variable you have just created.

    7. Select the operator under equals.

    8. Define the text with which you want to compare the variable.
      Options:

      1. Enter a text in the gray field or

      2. Select a text field from the questionnaire under Answer value. The platform uses this to compare the variable with the text stored by the user or

      3. Under Variable value, select a user-defined variable or

      4. Under Product attribute value, select an attribute from the product data. The platform then compares the variable with the texts in the selected table column.


    Was this article helpful?