The RHS Expressions are expressions on the Right-Hand Side of the assignment symbol or assignment operator which are used to specify, retrieve and/or calculate values. Following rules apply:
RHS Expressions are applicable in following cases:
The following are not allowed in RHS expressions:
Note: Whenever the term Expression is referred without indications on left/right-hand sides, then the right-hand-side is assumed.
echo(RHS Examples with variables);
a[] = 10;
a[name] = 'My Name';
a[four] = (a[] - 2)/2;
a[colors] = { red, yellow, green, blue };
a[nine] = sqrt(81);
see(a[]);
echo(RHS Examples with a table);
table initialize ( List, {{Name, Score}, { Amy, 10}, { Bea, 20}, {Claus, 30}} );
echo( [List: Name, 2] ); // Bea
echo( [List: Name, Amy, Score] ); // Amy's Score: 10
echo( [List: Name, ..] ); // All names in a set
RHS Examples with variables
a[] 10 "10" (numeral,full access)
colors 4 elements: (set,full access)
red (softquoted string)
yellow (softquoted string)
green (softquoted string)
blue (softquoted string)
four 4 (plain numeral,full access)
name My Name (softquoted string,full access)
nine 9 (plain numeral,full access)
RHS Examples with a table
Bea
10
{'Amy','Bea','Claus'}