Edit expressions with the expression editor in Service Studio. Launch the expression editor by double-clicking:
- Expression widget
- Property fields
- Errors and warnings in the TrueChange pane
Here are the parts of the expression editor, and how you can use them.
- Expression field
- Edit your expressions in the expression field (1). Use Ctrl+Space to autocomplete a word or show a list of suggestions.
- Most of the buttons in the toolbar (2) are the operators developers use often. Click the button to insert the element in the expression field.
- Scope pane
- The scope pane (3) shows the elements you can use in the expression, like variables, built-in functions, scripts. The availability of local elements depends on where in the app you're editing the expression. Note that only actions that you set as functions show in the scope pane.
- Description pane
- You can read the details about an element in the description pane (4). If a function has documentation, the documentation shows in the description pane.
- The expression status (5) tells you if the expression you're editing is valid or not.
Here are notes about expression and the expression widget, the concepts that are closely related to the expression editor.
Expression, operands, operators
Expression is what you edit in the expression editor. An expression consists of operands and operators. Check out the following topics for more information:
To quickly show the result of an expression, use the expression widget. Check out this page to see how to use the expression widget, with examples: