Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is there an "otherwise" clause ?

Featured Replies

I need to detect 3 states:Case Value=0 "Smile"Case Value=1 "Frown"OTHERWISE "Bury face in hands"I can't find any XML examples like this construct anywhere. Does it exist?Or maybe I should be using the if{} construct ?Cal - CYXXVE7LZZObvious Newbie

Hi,You can use a lot of 'sAn example:If condition=0 then 0 (>L:condition,enum)If condition=better then 1 (>L:condition,enum)If condition=much better then 2 (>L:condition,enum)If condition=best then 3 (>L:condition,enum)etc.now let the bitmaps change by:<(L:condition,enum)If condition=0 then 0 (>L:condition,enum)If condition=better then 1 (>L:condition,enum)If condition=much better then 2 (>L:condition,enum)If condition=best then 3 (>L:condition,enum)etc.(L:condition,enum)Hope it helps,Jan"Beatus ille qui procul negotiis..."

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Thanks Jan,This confirms the conclusion I've reached.Just getting started. I find information on basic XML gauge programming is scattered and seems a bit sketchy about this kind of logic.But I'll keep plugging away and re-reading the tutorials and examples and hopefully it will sink in.Cal

>I need to detect 3 states:>>Case Value=0> "Smile">Case Value=1> "Frown">OTHERWISE> "Bury face in hands">>I can't find any XML examples like this construct anywhere.>Does it exist?>>Or maybe I should be using the if{} construct ?>>Cal - CYXX>VE7LZZ>Obvious NewbieHi,The OTHERWISE can be implicit placing a default bmp in the -For example:SCRIPT"Smile""Frown"etcAny value returned by SCRIPT different from 1 or 2 will make the element show the default image.Tom

  • 2 weeks later...

Thx for this!

Oooops, forgot to post a reply to Tom.Thanks Tom. That's essentially what I ended up doing with a separate Element for each condition of each gear.In my case, gear down is green, gear in transit is red and gear up is no lights. Your use of the word, 'implicit' was the key.Cal - CYXXVE7LZZ

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.