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! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

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