From Bright Pattern Documentation
Jump to: navigation, search
imported>Elizabeth
 
(Updated via BpDeleteTranslateTags script)
 
Line 1: Line 1:
<translate>= String Expressions=
+
= String Expressions=
 
In Bright Pattern Contact Center, you may work with data as variables stored as values, which may be specified as strings or expressions. A string is a sequence of characters that is generally understood as a data type; often a string is implemented as an array of bytes (i.e., words) that store a sequence of elements. An expression will produce a data type such as string.
 
In Bright Pattern Contact Center, you may work with data as variables stored as values, which may be specified as strings or expressions. A string is a sequence of characters that is generally understood as a data type; often a string is implemented as an array of bytes (i.e., words) that store a sequence of elements. An expression will produce a data type such as string.
  
Line 16: Line 16:
  
 
<center>[[workflow-builder-reference-guide/Variables|<Previous]]  |  [[workflow-builder-reference-guide/IntegerExpressions|Next>]]</center>
 
<center>[[workflow-builder-reference-guide/Variables|<Previous]]  |  [[workflow-builder-reference-guide/IntegerExpressions|Next>]]</center>
</translate>
 

Latest revision as of 04:11, 29 May 2024

• 5.19 • 5.2 • 5.3 • 5.8

String Expressions

In Bright Pattern Contact Center, you may work with data as variables stored as values, which may be specified as strings or expressions. A string is a sequence of characters that is generally understood as a data type; often a string is implemented as an array of bytes (i.e., words) that store a sequence of elements. An expression will produce a data type such as string.

What follows is a list of tips regarding string expression structure.

  • Strings are enclosed in double quotes (e.g. “sample string”).
  • Backslash can be used to embed a double quote phrase within a string (e.g., “sample string \”embedded quote\” sample string”).
  • Backslash can also be used to insert literal new-line and carriage-return symbols using the \n and \r notation (e.g., “sample string\n with new line in it”).
  • Strings can be concatenated; that is, strings can be linked together as in a chain (e.g., “string 1”+” “+”string2” produces “string1 string2”).
  • Strings themselves or string expressions cannot span multiple lines (i.e., while embedded, \n is OK, but the actual new line is not).


<Previous | Next>
< Previous | Next >