PCB Matrix Format
by Numerical Innovations, Inc. (www.numericalinnovations.com)
IF Conditional (Attribute)

MATRIX Array Level: 1

IF conditional statement executes a martix feature if the specified condition result is true

<MESSAGE if="1==1"> TRUE: My component: {{ myPN myREF }} </MESSAGE>


XML example:

<NumericalMatrix myPN="234623-121" myREF="R54" foo="bar" tempNum="5.0">
<MESSAGE if="1==1"> TRUE: My component: @myPN @myREF </MESSAGE>
<MESSAGE if="@foo==bar"> TRUE: Variable foo is equal to bar </MESSAGE>
<MESSAGE if="2==1"> FALSE: Should not see this message </MESSAGE>
<MESSAGE if="2!=1"> TRUE: These values are not equal </MESSAGE>
<MESSAGE if="@tempNum/2.0==2.5"> TRUE: Solved equation </MESSAGE>
</NumericalMatrix>
Outputs the following:
-----------------------
TRUE: My component: myPN myREF
TRUE: Variable foo is equal to bar
TRUE: These values are not equal
TRUE: Solved equation