Expression Editor#
Expressions are an important and powerful tool that allows you to avoid using additional unnecessary blocks, performing various arithmetic calculations, string operations, and utilizing built-in functions directly where the need arises (all within a property).
Edit Expressions#
For convenience when working with expressions, use the "Edit Expressions" window. This window can be opened from the Block Properties Panel by clicking on the ellipsis next to any property that supports the use of expressions.

The "Edit Expression" window is designed for creating expressions that can be used as conditions for checks, formulas for calculating values, etc. The editor allows you to create and edit previously created expressions without involving system developers, by a trained user or administrator. At the bottom of this window, there is help on functions. Select a category of functions and the function itself to see a hint on how to use it in an expression. Double-click on the function or example of using the expression to insert it into the currently edited expression.
Clicking this button opens the "Edit Expression" window. Here you can set a constant corresponding to the type of data that the property expects.
.png)
The Expression Editor also allows you to specify a path to a folder or file in the expression editing field. To do this, right-click on the expression editing field and select one of the options from the context menu:
- “Select folder path…”;
- “Select file path…”.
The path will be inserted into the window at the current cursor position.
Special Keys#
The list of special keys in the “Special Keys” category allows you to insert key combinations and special characters without manual input. They can be used in the “Press Keys” block.
.png)
Expression Structure#
Expressions in the system are used to impose various conditions on data when searching for data, selecting data for reports, checking the correctness of data input, etc. Expressions can be written in the form of mathematical functions, dates, and arbitrary expressions (written in an expression language similar to PowerShell). Constants, variables, mathematical functions, or methods can be used in expressions.
When you use an expression in a Block property, at the moment when the script execution reaches this Block, the values of the expressions are calculated, taking the current values of all variables used in the expression. The result of the expression calculation is used as the value of the property in which this expression was recorded.
Properties located in the Output section do not allow the use of expressions. You must write the name of the variable into which the Block should place the result of its work.
The InvokeExpression block in the Expression properties allows the use of extended format expressions, which are similar to expressions in the PowerShell scripting language. They can also include explicit assignments. The expression is written as $VariableName, followed by an equals sign (=), and then the value you want to assign. To specify a variable, use the key symbol $. The assignment operator “=” is used to assign values to variables.
Video#
Working with IntelliSense hints in the Expression Editor is demonstrated here:
ВидеоMegaShot