FS2004 Macro Syntax question

Hi, I use this Macro for a fontcolor:
XML:
<Macro Name="DigitColor">%('#A3570B' '#9F5810' '#9C5815' '#98591A' '#955A1F' '#915B24' '#8D5B29' '#8A5C2E' '#865D33' '#835D38' '#7F5E3D' '#7B5F42' '#785F47' '#74604C' '#716151' '#6D6256' '#69625B' '#666360' '#626465' '#5F646A' '#5B656F' 21 (L:IntLight_Rotary, number) case)</Macro>
that is working great.

Now I want to add a condition. I have no idea for the syntax. Can someone help, please?

EDIT:
fixed by try and error:

XML:
<Macro Name="DigitColor">%((L:BUS_AC_Avail, number) 1 ==
if{ '#A3570B' '#9F5810' '#9C5815' '#98591A' '#955A1F' '#915B24' '#8D5B29' '#8A5C2E' '#865D33' '#835D38' '#7F5E3D' '#7B5F42' '#785F47' '#74604C' '#716151' '#6D6256' '#69625B' '#666360' '#626465' '#5F646A' '#5B656F' 21 (L:IntLight_Rotary, number) case }
els{ #5B656F })</Macro>
 
Last edited:
Top