...
Defined variables can be accessed with $ sign prefix. Example: $ExpenseLimit
Code Block | ||
---|---|---|
| ||
var isValid = $Xml.Sum('ExpenseList/Expense/Amount') > $ExpenseLimit; |
...
Variables also can be used in XPath expressions with same syntax. For example .
Code Block | ||
---|---|---|
| ||
var invalidExpenses = $Xml.SelectAll('ExpenseList/Expense[Amount > $ExpenseLimit] |
...
'); |