Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Defined variables can be accessed with $ sign prefix. Example: $ExpenseLimit

Code Block
titleExample variable usage in script
var isValid = $Xml.Sum('ExpenseList/Expense/Amount') > $ExpenseLimit;

...

Variables also can be used in XPath expressions with same syntax. For example .

Code Block
titleVariable usage in xpath expression
var invalidExpenses = $Xml.SelectAll('ExpenseList/Expense[Amount > $ExpenseLimit]

...

');