1. In the Expression field of the Statement Step type, use the Enum(String type, [String|Number] value) expression function to update an Enum variable. In the Enum() function, String type refers to the Enum data type name and [String|Number value] refers to the value you want to update. Figure 3 below shows how to use the Enum() expression function so that the FlowControl Enum variable will be updated. The above example shows how to update the variable using the string value of the enumeration data type.

Figure 3. Updating Using String Value
2. You can use either the String value of the Enum data type or the Numerical value of the Enum data type when using this expression. Figure 4 below is now using the numeric value of the enumeration data type to update the FlowControl Enum variable. This method does not require you to use quotation marks around the numeric value.

Figure 4. Updating Using Numeric Value