PML 2 Expressions
- Last UpdatedOct 24, 2022
- 1 minute read
PML 2 introduces enhanced facilities for expressions in IF and DO commands and when giving a PML variable a value using = assignment.
For example, the value of a PML variable can be used by giving the variable name as the expression to the right of =:
!SavedValue = !Number
Users familiar with PML 1 should note the absence of $ preceding the variable name. These new expressions do not need to be enclosed in ( ) parentheses:
!NewValue = !OldValue + 1
PML 2 expressions:
-
May be of any complexity.
-
May contain calls to PML functions and methods.
-
May include form gadget values (described later), and object members and methods. For example:
!NewValue = !!MyFunction(!OldValue) * !!Form.Gadget.Val / !MyArray.Method()