Jump to content
Sign in to follow this  
phjvh

Using CASE in XML

Recommended Posts

Hi,I'm trying to cleanup my XML gauge code.Since a lot of my gauges are state-driven (and therefore click events depend on the state), I tried: (L:state,number) ....operations ....other operations But this doesn't work (a click doesn't do anything)Also tried (L:state,number) ; doesn't work either.I know I can solve it wit nested if-els, but the CASE would make the code more simple to read.ANy suggestions ??Thanks, Rob

Share this post


Link to post
Share on other sites

Hi,May be you could use the case command,just an example, not tested:3 (>L:state,enum) 2 (>L:state,enum) 1 (>L:state,enum) 3 (L:state,number) caseJan"Procul Negotiis"

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...