Topic complex |
Other functions |
Function |
xwert() |
Short |
Calculates the n. expression of a list (out of date) |
Syntax |
XWERT(n : INTEGER; Ausdruck_1; Ausdruck_2; Ausdruck_3; ...) : REAL/STRING |
Parameter |
n : natural number
expression_1 ... : any arithmetic expression |
Return |
expression_n
At first n is calculated then the n'th expression of the list.
If n<=0 or n>max (with expression_max is the last entry of the list) the last expression of the list is calculated. |
See also: |
|
Description |
This function replaces in many cases the SWITCH statement of other programming languages.
Example:
XWERT(n,'monday','tuesday','wednesday',...)
returns for n=1 'monday', for n=2 'tuesday' etc.
|