Versions Compared

Key

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

PhixFlow is a low-code, application-development platform which allows applications to be build within a development user interface instead of being coded from the ground up by software developers. However, there are places within PhixFlow where coding to achieve a function is needed in the form of expressions. 

Jep Expressions

Jep Expressions are software commands which perform a function within PhixFlow. Expressions are written in camelCase without spaces, and with the first word lower case and subsequent words uppercase eg. listToString(). Expressions contain brackets in which a set of arguments are written separated by commas. The below list contains a list of pages on expressions, which give their correct syntax. However, a simple example is an if() statement. 

if(_out.NumberOfApples > 1, 1, 0)

The syntax of an 'if' statement is if(condition, trueExpression, falseExpression), so in the expression above, _out.NumberOfApplies, 1 and 0 are the three arguments. . Using PhixFlow, you can create applications starting with the user interface, rather than requiring software developers to code all the functionality. However, PhixFlow sometimes needs code-like instruction to achieve the functionality you need. This is done with short expressions or longer scripts.

Expressions   are short pieces of code that perform a function within a PhixFlow model, application or taskplan. Good starting pages for learning how to write expressions are:

Arguments

Arguments can contain several types of functions. (To find the correct syntax for an expression - find it in the list below or search in confluence)

...

/* and to 0 if it is not */

)

Macros

See Macro

Sometimes we might want to write our own expressions that can be used time and again. To do this we can write a Macro. Instead of a writing the name of each attribute in the expression, instead make it generic by writing $args[1], $args[2] etc. 

...