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…') |
No edit summary |
||
Line 1: | Line 1: | ||
== Synopsis == | |||
set ''variable'' ... | |||
''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 | |||
Revision as of 16:44, 13 August 2009
Synopsis
set variable ... 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