This test shows how custom expressions can be added to ZPT-JS. We have written a custom expression class, IncExpression, available using ++:. It adds 1 to the related variable and returns it.

  1. aNumber = 5
  2. ++: aNumber = 6 = 5 + 1 = 6
  3. ++: aNumber = 7 = 6 + 1 = 7