- Messages
- 1,564
- Country

This code is the closest I have gotten. It operates by inputting the letter A as it should
but I cannot understand why it is doing it without me switching my Lvar to 1. Even after
this code resets it to 0, when it loops it reads it as 1 and operates again? All without me touching
my assigned joystick button.
Code:<Update id="GCU477"> (L:Stinger2k2_A,bool) 1 == if <Script>65 chr (>@c:IcaoSearchEnterChar) 0 (>L:Stinger2k2_A,bool)</Script> </Update>
Ok. You're very close, but the if statement is done a little bit incorrectly - you didn't use brackets. As you have written it, you are telling the gauge to enter A continuously.
Try something like this:
XML:
<Update>
<Script>
(L:Stinger2k2_A,bool) if{ 'A' (>C:fs9gps:IcaoSearchEnterChar) 0 (>L:Stinger2k2_A,bool) }
</Script>
</Update>
or
<Update>
<Script>
(L:Stinger2k2_A,bool) 1 == if{ 'A' (>C:fs9gps:IcaoSearchEnterChar) 0 (>L:Stinger2k2_A,bool) }
</Script>
</Update>
Place that code block toward the top of the gauge.
Maybe this will get it to finally work.
Bob
Last edited:




In a "ah hah!" moment as the coffee is brewing as there is no chance of getting any measurable sleep -
