Overview
Expressions contain brackets that contain set of arguments. The arguments are separated by commas. Expressions can also include:
PhixFlow Internal VariablesFunctionsRegular ExpressionsEscape CharactersUser-defined variables, called $-variables; see Using Variables. Insert excerpt |
---|
| _Banners |
---|
| _Banners |
---|
name | phixScript |
---|
nopanel | true |
---|
|
Parameter Tip |
---|
To assign a string, it must be enclosed in: - either single quotes:
'Hello' - or double quotes:
"Hello"
|
you can but have defined of the stream attribute to be a If there is , when the expression is evaluated, PhixFlow stops evaluating the expression and A list . For details about what other values arrays can hold and Array handling in general see . For details about date manipulation functions go to . For details about date manipulation functions go to Date Functions Insert excerpt |
---|
Using Variables | Using Variables | nopanel | trueRegular Expressions allow string patterns to be expressed; see Regular Expressions. | Assigning Values to Variables Anchor |
---|
dollarvar-intro | dollarvar-intro | In PhixFlow, you can create your own variables using a $ symbol, for example $variableName
; see Using Variables.
Stream attribute Statements an if() statement; see the if page.Expression | Result |
---|
if( _out.NumberOfApples > 1, 1, 0 )
| tbc |
Multiline Statements and $-variablesThe value of an expression that is used, is the value of 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.
Notation | Use for |
---|
// | short comments up to 1 line |
/* <comment> */ | multi-line comments |
For some examples using comments, plus other style tips for expressions, see Expression Style.
See Also
Expressions and Scripts topic page for links to more information.