TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Keyword

Variables and Assignments

Description

Values may be assigned to variables. A variable enables you to refer to an object via a name. The assignment operator is ':='. Do not confuse the assignment operator ':=' with the single equality sign '=' which in KASH3 is only used for the test of equality.
After an assignment, the assigned value is echoed on the next line. The printing of the value of a statement may be in every case prevented by typing a double semicolon.
After the assignment, the variable evaluates to that value if evaluated. Thus it is possible to refer to that value by the name of the variable in any situation.
A variable name may be sequences of letters and digits containing at least one letter. For example 'abc' and 'a1b2' are valid names. Since KASH3 distinguishes upper and lower case, 'a' and 'A' are different names. Keywords such as 'quit' must not be used as names.

Examples

a:=32233; A:=76; a+A;
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group