If (String)

Example

We have a Customers dataset which we will use to evaluate and transform the Items field.

In this example we will use the Expression object to define the condition, and a Variables object to define a string thenValue and a string elseValue.

Where,

Condition: Items = “1”

thenValue = FirstItem

elseValue ­ = SecondItem

In the output, you can see that string values, FirstItem and SecondItem, have been returned depending on whether the Items field condition was met.