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
-
On the Workflow designer toolbar, click Variables to open the Variables panel or click +Insert from the configuration panel of an action.
-
Specify the Name and Type of the variable.
-
In the Default value field, click and select Set value as null.
-
Click Create.
Set value of an existing variable to null
-
On the Workflow designer toolbar, click Variables to open the Variables panel or click +Insert from the configuration panel of an action.
-
Next to the variable you want to edit, click and select Details.
-
Click Edit.
-
In the Default value field, click and select Set value as null.
-
Click Save.