User Tools

Site Tools


SET SCALAR

Guide Section: Processing Events and Performing Actions
EASAP Tree:
EVENT PROCESSINGACTIONDATA PROCESSING ACTIONS / PROCESSESDATA PROCESSING ACTIONS


SET SCALAR sets the value of an explicit SCALAR. By default, the value of the SCALAR defined by in Name: is set to the literal value set in the Value:

  • If Type: → ‘Evaluate’,
    • Value: is evaluated as an expression.
      • The expression may be a function of the object specified in Name:
        • For example, x could be updated to have value 2*x+1
  • If Type:→ ‘Expand’,
  • If Type:→ ‘Expand and Evaluate’,
    • object references in the text will be expanded and then the resulting expression will be evaluated.
      • For example, a TEXTBOX, textbox1, could contain an expression typed in by the user say 2x and then %textbox1% in Value: would be expanded to 2x and then evaluated as a normal expression.

SET SCALAR
Essential Parameters:
Name:Name of explicit SCALAR to store values.
Value:Set the SCALAR reference in Name: to this value, object references or expressions may be allowed depending on Type:
Optional Parameters:
Type:Select type of method used on Value: (default→Value, Evaluate, Expand, Evaluate and Expand)
Delimiter:Character to delimit object references in Value: (default→%)
Do if:Logical expression, if FALSE then action NOT performed else default→TRUE.