Others

return x

Returns the value of X.

Example

The result of the following statement is 06/19/01.

return Today ()

if [b] then {...} else {...}

Conditional statement.

Example

The return value of the following statement is abc.

integer s=5;
integer f=8;
if ( f>s )
then return "abc"
else return "def"

x [ i to j ]

A statement used to define an array.

Example

The return value of the following statement is true.

string range strary = ["a" to "z"];
string x = "d";
x in strary

x [ i ]

A statement used to index a certain value in an array.

Example

The return value of the following statement is 14:11:27.

time d[3] = [totime(12, 11, 27), totime(13, 11, 27), totime(14, 11, 27)];
time dd[3];
dd = d;
dd[2]

x in y

A statement used to tell whether x is in y, the return value is a boolean value.

Example

The return value of the following statement is false.

integer x[3] = [0,1,2];
integer xx = 3;
xx in x

[ x, y, z ]

A statement used to define an array.

Example

The return value of the following statement is 1996-11-27.

date d[3] = [toDate(1997, 11, 27), toDate(1996, 11, 27), toDate(1995, 11, 27)];
date dd[3];
dd = d;
dd[1]

Left end point exclude operator: (x _to y)

x _to y is used to specify a range of values greater than but not including the value x, and less than or equal to the value y. Both x and y are the type of Number.

Example

The return value of the following statement is true.

integer a[] = [1,1,2,3,4];
3 in a[2 _to 4];

Right end point exclude operator: (x to_ y)

x to_ y is used to specify a range of values greater than or equal to the value x, and less than but not including the y value. Both x and y are the type of Number.

Example

The return value of the following statement is true.

integer a[] = [1,1,2,3,4];
3 in a[2 to_ 4];

Both end point exclude operator: (x _to_ y)

x _to_ y is used to specify a range of values greater than but not including the value x, and less than but not including the value y. Both x and y are the type of Number.

Example

The return value of the following statement is true.

integer a[] = [1,1,2,3,4];
3 in a[2 _to_ 4];

Up from operator: upfrom x

upfrom x is used to specify a range of values greater than or equal to the value x. x is the type of Number.

Example

The return value of the following statement is false.

integer a[] = [1,1,2,3,4];
3 in a[upfrom 4]

Up from but not including operator: upfrom_ x

upfrom_x is used to specify a range of values greater than but not including the value x. x is the type of Number.

Example

The return value of the following statement is true.

integer a[] = [1,1,2,3,4];
3 in a[upfrom_ 2];

Up to operator: upto x

upto x is used to specify a range of values less than or equal to the value x. x is the type of Number.

Example

The return value of the following statement is true.

integer a[] = [1,1,2,3,4];
3 in a[upto 4];

Up to but not including operator: upto_ x

upto_ x is used to specify a range of values less than but not including the value x. x is the type of Number.

Example

The return value of the following statement is false.

integer a[] = [1,1,2,3,4];
4 in a[upto_ 4];