Versions Compared

Key

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

...

try(expression1, expression2)

ArgumentTypeDescription
expression1ExpressionAny valid Expression
expression2ExpressionAny valid Expression

Examples

try( $val = toNum(crm.total), do( $SysError = _error + in.accountKey, -1 ) )


The first expression tries to convert crm.total to a number. If the conversion fails, the reason for the failure is stored in the internal variable _error. This value, along with a value from the in pipe is stored in the user defined $SysError variable, and a value of -1 is returned.

Code Block
try( 
   $val = toNum(crm.total), 
   do( 
      $SysError = _error + in.accountKey, 
      -1 
   ) 
)


See Also