INCLAN: set: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'Usage: eval ''variable'' = ''expression'' show ''variable'' ... set ''variable'' ... set ''variable'' = ''value'' unset ''variable'' ... ''vari…') |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Synopsis == | |||
'''set''' ''variable'' '''=''' ''value''<br> | |||
''variable'' ''':''' '''=''' ''value'' | |||
== Description == | |||
The statement "set" without parameters lists the names and values of all | The statement "set" without parameters lists the names and values of all | ||
Line 26: | Line 14: | ||
''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 | |||
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