Skip to main content

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: string, float, double, decimal, boolean, int, long, date, timestamp. Default: inferred from value.