Sign in to follow this  
Guest bartels

Another "simple XML question"

Recommended Posts

Hi allI need the XML code for a switch that allows to show a window, initially hidden, when click on it, if the battery is connected.I try with the following code, but it don't work: if{ (A:Electrical master battery,bool) if{ 844 (>K:PANEL_ID_TOGGLE) }}Of course, 844 is the ID of the hidden window to show.What's wrong?Thanks.Rafael

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Rafael,Try this one:(A:Electrical master battery,bool) if{ 844 (>K:PANEL_ID_TOGGLE) }Best RegardsMatthias

Share this post


Link to post
Share on other sites

Yep, looks good, if you want that the window is definetely opened and not toggled (assume it is open already) try PANEL_ID_OPEN instead of PANEL_ID_TOGGLE.Arne Bartels

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this