Variables and Expressions

Bright Pattern Documentation

Generated: 11/28/2021 5:47 am
Content is available under license unless otherwise noted.

  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/Overview

  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/Variables

Variable Parameters

This section describes parameters you may add to your scenario or workflow variables.

How to Use a Variable Parameter

A variable parameter is added within the variable selector (i.e., inside the parentheses) after the variable and separated by a comma.

$(variable,parameter)

For example:

$(item.from,escapejson)

Usage Notes

Parameters

escapejson

When invoked, escapejson will escape (i.e., insert a backslash in front of) invalid JSON characters from the value of the variable. This includes the following:


For example, where $(item.from) = Pete "Maverick" Mitchell:

{"pilot": "$(item.from,escapejson)"}

The following will be returned:

{"pilot": "Pete \"Maverick\" Mitchell"}




  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/StringExpressions

  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/IntegerExpressions

  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/FloatingPointExpressions

  1. REDIRECT 5.3:Scenario-builder-reference-guide/Reference/VariablesandExpressions/Built-inFunctions