INCLAN: set: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
== Synopsis ==
== Synopsis ==


set ''variable'' ...
'''set''' ''variable'' '''=''' ''value''<br>
''variable:'' = ''value''
''variable'' ''':''' '''=''' ''value''


== Description ==
== Description ==

Latest revision as of 10:15, 17 August 2009

Synopsis

set variable = value
variable : = value

Description

The statement "set" without parameters lists the names and values of all variables that do not have the value "NULL"; with parameters, "set" lists the names and values of the given variables. In contrast to "show", local variables are listed too.

"set variable = value" gives the variable variable the string value value.

Examples

set i=456
j := 2 + i	#Short form of set assigns a string value
k = 2 + i	#Short form of eval evaluates an expression
set i j k
i = 456
j = 2 + i
k = 458