Skip to content

If then end

Description

This statement conditionally executes statements.

Syntax

If <Expression> then 
    <Statements> 
End

Where square brackets indicate optional parts of the statement and ‘…’ indicates more occurrences are allowed.

Sample

if {Customer.State} = "DC" then
    return "Federal district"
end