Set Variable

Set a context variable that can be used in future commands.

Syntax

set <variable name> = <value> [as <data type>]
set <variable name> = '<value>' [as <data type>]
set <variable name> = "<value>" [as <data type>]
set <variable name> = '''<value>''' [as <data type>]
set <variable name> = """<value>""" [as <data type>]

Parameters

variable name

String. The name of the variable.

value

String, Number, or Boolean. The value to assign to the variable.

data type

String. The type of the variable. Possible values: stringfloatdoubledecimalbooleanintlong, date, timestamp. Default: inferred from value.

Was this article helpful?
0 out of 0 found this helpful