SET clause: Set variable statement syntax

Sets the values of one or more variables in a Set Variable statement.

Syntax

SET name = value [, ...]
Components

name

The name of a variable, previously created with a Create Variable statement.

value

An expression that evaluates to a value of the appropriate data type.

Usage

The SET clause sets the values of listed variables to the output of the specified expression, if the trigger, specified by the Set Variable statement's ON and WHEN clauses occurs.

See Also

EXAMPLES

ON StreamX
WHEN StreamX.Price > 100
SET price_alert = TRUE;