- 16 Apr 2024
- 1 Minute to read
- DarkLight
Expression Parameter
- Updated on 16 Apr 2024
- 1 Minute to read
- DarkLight
General
Some Expressions have additional parameters that may be used within the expression. This type of placeholder can be used to access one of these parameters.
Example: Expressions of style properties of a Table Style have a CellValue parameter that contains the value of the cell for which the style property is being evaluated.
Syntax
The syntax for this type of placeholder is:
[<name_of_parameter>]
Example
Let's suppose you write an Expression for the Font property of a Table Cell Style; in that context, the CellValue expression parameter is available, which contains the value of the cell for which the style property is being evaluated. An expression could look like this:
If([CellValue] = "David", "Arial", "Tahoma")
If the value of the cell for which the style property is being evaluated equals David, the cell will have the font Arial; otherwise the font Tahoma will be used.