I want to control the glideslope needle with an ON-OFF switch.
Without the switch, this code works correctly.
But if I change these lines, it no longer works.
Thank for your help.
Without the switch, this code works correctly.
Code:
<PartInfo>
<Name>00-NORD_needle_ILS1_Glide</Name>
<AnimLength>238</AnimLength>
<Animation>
<Parameter>
<Code>(A:NAV GSI:1, Number) 119 + </Code>
<Lag>300</Lag>
</Parameter>
</Animation>
</PartInfo>
But if I change these lines, it no longer works.
Code:
<PartInfo>
<Name>00-NORD_needle_ILS1_Glide</Name>
<AnimLength>238</AnimLength>
<Animation>
<Parameter>
<Code>
[COLOR="Red"][B] (L:NORD_ILS1_ON-OFF,number) 0 ==
if{ 119 (>A:NAV GSI:1, Number) } <!-- needle deactivated -->
els{ (A:NAV GSI:1, Number) 119 + } <!-- needle activated -->[/B][/COLOR]
</Code
<Lag>300</Lag>
</Parameter>
</Animation>
</PartInfo>
Thank for your help.


