PML Customisation
User Guide
PML Expressions
: PML 2 Expressions
PML 2 Expressions
PML2 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 PML1 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()
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.