Function Syntax and Return Values

Reference:

This topic describes the syntax and return values of the functions supplied with iWay Service Manager. Functions are listed in alphabetical order.

Any function can begin with the underscore character. Many functions must begin with the underscore character. This documentation shows the underscore character when it is required.

The underscore character prevents embedded strings from being evaluated. For example, the SQL statement

WHERE COUNT(XXX) < 3 

would result in an error if it were confused with the iWay _COUNT() function. The underscore in the iWay function distinguishes it from the SQL statement.


Top of page

x
Reference: COND() Operators and Operands

Monadic means that there is only one operand on the left and if there is an operand on the right, it is ignored. For example: COND(FILE(xx),EXISTS).

Dyadic functions require two operands, as do comparisons.

The following table lists and describes the available operators and operands.

Operator

Operand

Description

EQC

Dyadic

Case-insensitive compare. The normal case (EQ) is case sensitive.

EXISTS

Monadic

Determines if the first operand exists. If the first operand is a special register SREG(name), the value is true if the register exists (is defined). Otherwise, the value is false. If the first operand is an XPATH expression such as XPATH(//SSS), the result is true if the node identified by the XPATH is found in the document. For all other operands, the function tests whether the operand has a length.

ISNULL

Monadic

For XPATH, determines if the identified node has a value. Results of this test can be ambiguous and its use is discouraged.

ISEMPTY

Monadic

Returns true if the operand has a value (that is, the node identified by the XPATH has a value).

ISNOTNULL

Monadic

Reverse of ISNULL.

ISTRUE

Monadic

Returns true if the value of the first operand is true or yes. Otherwise, returns false.

ISNOTTRUE

Monadic

Reverse of ISTRUE.

=, EQ

<, LT

<=, LE

>, GT

>=, GE

!=, NE

Dyadic

Case-sensitive lexical compare or arithmetic compare.


iWay Software