Expression evaluation

Before using a switch's value, it is evaluated against ${} expressions, eg. ${TIME.HH}.

An expression starts with a dollar mark followed by opening brace. The expression body comes after the opening brace and is closed by a closing brace. The text inside the braces is also evaluated recursively, eg. ${UNIQUENAME(${TIME.YYYY}-${TIME.MM})}.

A special syntax is used for expressions that need parameters: ${EXPR(PARAM1,...,PARAMN)}. PARAM1 till PARAMN can themselves be expressions, eg. ${READ(${FILENAME},ISO-8859-12)}

p7mTool defines some built-in expressions for convenient script designing. You can also define your own variables for use in expressions using --Define switch.

Copyright © Cryptigo 2001-2013Last modified on  09 Jul 2004