Arithmetic Expressions

A function that returns an integer can participate in an arithmetic expression. However, there are limitations, such as an expression of the form

Intfunction() opvalue

where:

op

Is either plus (+) or minus (-).

value

Is either an integer or a function that returns the expected result.


Top of page

Example: Arithmetic Expression With Special Register

If the value of the special register, X, is 10, then the following function returns 12:

SREG(X)+2

iWay Software