Variables with null value

A variable with null value is empty and has no value. When a connector supports null values, you may need to set the variable to have a null value. You can set the value of the variable to null when creating the variable or using the Set a variable value action.

Note: Null values are considered an unknown state and we strongly recommend that you do not use them. If only one end of the operand contains a null value, then it will be evaluated as false. For example, ("test" != Null) returns False, and ("test" == Null) also returns False. However, if both ends of the operand contain null values (matching states), an intuitive response is returned. For example, (Null != Null) returns False, while (Null == Null) returns True.

Create a variable and set the value to null

  1. On the Workflow designer toolbar, click Variables to open the Variables panel or click +Insert from the configuration panel of an action.

  2. Specify the Name and Type of the variable.

    Note: 

    Variables names must adhere to the following naming conventions to support localization:

    • Must be at least 1 non-whitespace character.

    • Cannot contain newline or paragraph characters.

    • Cannot contain HTML as it contains unsupported characters like <, >, and /.

    • Cannot begin with a number.

    • Cannot contain any of the following characters: +, -, !, *, ", /, >, >=, <, <=, =, ==, !=, &, &&, |, ||, ., , (comma), [, ], (, ), and \n

  3. In the Default value field, click and select Set value as null.

  4. Click Create.

Set value of an existing variable to null

  1. On the Workflow designer toolbar, click Variables to open the Variables panel or click +Insert from the configuration panel of an action.

  2. Next to the variable you want to edit, click and select Details.

  3. Click Edit.

  4. In the Default value field, click and select Set value as null.

  5. Click Save.