User Tools

Site Tools


syntax:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
syntax:start [2015/06/03 23:31] dmitrysyntax:start [2020/04/28 09:26] dmitry
Line 17: Line 17:
 === Parameters === === Parameters ===
 An expression can refer to [[parameters:|project parameters]] that are evaluated to text or number constants prior to calculating the expression. Parameter names in expressions are wrapped in curly brackets and are case-sensitive. E.g. {File name}, {Ratio}. An expression can refer to [[parameters:|project parameters]] that are evaluated to text or number constants prior to calculating the expression. Parameter names in expressions are wrapped in curly brackets and are case-sensitive. E.g. {File name}, {Ratio}.
 +
 +
 +=== Comments ===
 +Expressions can be annotated (commented). Any text between a double-slash (%%//%%) and the end of line is considered a comment and is ignored during expression evaluation. A comment can't span several lines. Example:
 +
 +<code>
 +//Converted amount.
 +[Amount] * {FX Rate}  // Using a parameter for the exchange rate.
 +</code>
  
 === Example 1 === === Example 1 ===
Line 45: Line 54:
 |  QC  |    2000| 270| |  QC  |    2000| 270|
  
-=== Transformations that use expressions ===+ 
 +=== A few transformations that use expressions ===
   * [[transformations:addcolumn|Calculate new columns]]   * [[transformations:addcolumn|Calculate new columns]]
   * [[transformations:replacecolumn|Calculate and replace columns]]   * [[transformations:replacecolumn|Calculate and replace columns]]
Line 51: Line 61:
   * [[transformations:filter|Filter by condition]]   * [[transformations:filter|Filter by condition]]
   * [[transformations:trimbycondition|Trim by condition]]   * [[transformations:trimbycondition|Trim by condition]]
 +  * [[transformations:halt|Halt on condition]]
syntax/start.txt · Last modified: 2021/07/21 15:22 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki