Index: 10_forge.html =================================================================== --- 10_forge.html (revision 8119) +++ 10_forge.html (revision 8120) @@ -7,6 +7,8 @@ way for describing attribute transformations in attributes (e.g. in a library symbol) during compilation. +
{imp10:1} The forge plugin works from the array attribute forge, which is taken as an ordered list of atomic steps to execute on attributes. For @@ -57,9 +59,61 @@
{imp10:8} +Attributes whose key start with forge-if/ are used for conditional +execution of forge. The remainder of the attribute key is an arbitrary +identifier, for example forge-if/dnp is commonly used for setting a DNP +(do-not-populate) attribute depending on the current view and/or stances. +
{imp10:9} The attribute is an array; the first line contains +the condition; the rest of the lines contain the same forge operations +as the unconditional forge attribute. +
{imp10:10} The condition is an expression in the usual infix form. +There are three data types supported: +
{imp10:11} The following binary operators are defined for strings (where each +oparand is a string literal or a constant): +
{imp10:12} The following binary operators are defined for integers, with +their usual meaning and precedence: +
{imp10:13} The following non-binary operators are defined for integers, with +their usual meaning and precedence: +
{imp10:14} Parenthesis affects the precedence the usual way. + + +