MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
cgifford
Posts: 10
I am trying to program an toggle switch for the NAV1 button on the radio panel. It is a momentary switch, so I need to check the value and set it to a 1 or a 0 as appropriate. However using statement such as "if($=0,1,0)" doesn't seem to work. What am I doing wrong? I know if I just set the value to a 0 or a 1 it works, but $ is obviously never 0 or 1. Any help would be greatly appreciated!
2016-03-03 03:59
Avatar
cgifford
Posts: 10
Nevermind, should be ==, not =...
2016-03-03 22:56
icon