Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
String Concatenation (+)
The + operator also serves as the string concatenation operator. This means you can use + to join strings together. For example if in.customerName
returns "Smith" and in.title
returns "Mr":
"Hello" + " to " + "you"
"Dear " + in.title+ " " in.customerName + "," +
If you use +
to concatenate a string and a number (integer or floating point), then PhixFlow treats the number as if it is a string. For example:
"Hello" + 3
"4" + 3
Using Functions
PhixFlow has a set of functions you can use in expressions. Functions have a set of comma-separated arguments, enclosed in backets.; see Functions. Each function has a help page explaining it's syntax, which has the form
name (arg1, arg2...)syntax is usually <name ( argThese functions contain arguments, which may be one of the following:
- a simple integer or string
- another expression
- one of the /wiki/spaces/HELP80/pages/1456964453
- Regular Expressions, to match patterns within strings or arrays.
The help page for each function explains what PhixFlow expects for a specific argument.
Expressions contain brackets that contain set of arguments. The arguments are separated by commas. Expressions can also include:
- a simple integer or string; Text Expressions and Escape Characters
- PhixFlow's /wiki/spaces/HELP80/pages/1456964453
- your own user-defined variables, called $-variables; see Using Variables
- Regular Expressions, to match patterns within strings or arrays
- another expression
- Functions
see Functions. Each function has a help page explaining it's syntax,
Assigning Values to VariablesIn PhixFlow, you can create your own variables using a $ symbol, for example $variableName
; see Using Variables.
Adding Comments
It is always a good idea to add comments to your scripts to explain its steps. Comments help anyone who needs to modify the script in future.
There are two ways to tell PhixFlow that a line is a comment, and can be ignored.
//
short comments up to 1 line
/* <comment> */
For some examples of using comments, plus other style tips for expressions, see Expression Style.
- for and $-variablesThe value of an expression that is used, is the value of the