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
Help AVSIM continue to serve you!
Please donate today!

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