Difference between revisions of "Set Variable"

From PresenceWiki
Jump to: navigation, search
(No difference)

Revision as of 13:49, 23 June 2010

The Set Variable Node stores a value against a Variable Name for use in the current Task, or other Tasks, depending on the Scope. For more information on variable scopes, see the Variables page.

In the most simple scenario the value will consist of a literal - for example, "Fred" or 3.1416.

A Variable value may also reference another Presence variable, a Data Table column value, or a function call - or any combination of these. The following are all examples of valid values for a variable:

  • Apple
  • &upperCase{"hello world"}
  • &lowerCase{"Hello ${name}"}
  • Current record is :var{RECORD_ID}
  • &eval{"pow((${radius}*${pi}), 2)"}