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. +

10.1. Unconditinal forge

+

{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 @@

  • darr: if destination is an array, the source (or each element of the source, if it's an array) is combined into the destination array. Fails if source is array and destination is scalar. +

    10.1. Conditinal forge

    +

    {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): +