Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

PML 2 Expressions

  • Last UpdatedJan 08, 2024
  • 1 minute read

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()

Related Links
TitleResults for “How to create a CRG?”Also Available in