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.

Reposted: Need (A:HSI CDI NEEDLE VALID,bool) to play sound only 1 time

Featured Replies

"One finger" the Caps Lock key. All lower case would be more acceptable than, what we consider, YELLING...Don

  • Author
"One finger" the Caps Lock key. All lower case would be more acceptable than, what we consider, YELLING...Don
I ONLY HAVE ONE ARM AO
  • Author
The { and } symbols are components of the if{ } els{ } constructs. For every open brace { there must be a closing brace }.Note that blank spaces are absolutely critical for these constructs. Any error, no matter how seemingly insignificant can cause the entire gauge to fail to load at all. It is NOT the least bit forgiving! :(
  1. Correct syntax is: if{ (xxxxx) } els{ (yyyyy) }
  2. Note there is no space between if and the opening brace. There must be a blank space following the opening brace.
  3. Note there is no space between els and the opening brace. There must be a blank space following the opening brace.
  4. Note there must be blank spaces before and after each closing brace!

XML is not a "programming language" per se, but it does follow most of the rules of any programming language. If/else constructs may be "nested" as long as the above four rules are adhered to firmly.

(Condition 1)  if{ (DoThis 1) }  els{ (Condition 2)	if{ (DoThis 2) }	els{ (DoThis 3) }	}  }

IS THE LAST } NECESSARY?
hi,did you see my pm?
NOTE, I USE ALL CAPS. SEE ABOVETHANKS FOR THE SUGGESTION ABOUT USING NOTEPAD++ I HAVE HAD IT FOR YEARS AND KEEP IT UP TO DATE BUT HAVE BEEN USING NOTE TAB LIGHT FOR SO LONG, I WAS HESITANT TO CHANGE. BUT, I WILL 'NOW' WHEN EDITING XML FILES. THE { & } CHARACTERS HAVE GIVEN ME MORE F$I!G PROBLEMS THEN I CARE TO MENTION HA!....ANYWAY, SOME PEOPLE I KNOW WILL NOT ACCEPT CHANGE....I'M NOT ONE OF THEM.I FINALLY INCORPORATED THE 4 SOUNDS IN AN ALREADY AUTOLAND GAUGE THAT I HAVE MODIFIED OVER THE YEARS. I WAS AT FIRST TRYING TO MAKE A SEPARATE GAUGE THAT WOULD BE CALLABLE FROM ANY OTHER GAUGE. I THINK WITH THE GOOD SUGGESTIONS THAT YOU GUYS HAVE GIVEN ME, I WILL GO BACK AND FINISH THE GAUGE THAT I STARTED.THANKS

Edited by LKL

Hi,Was also interested in the 4 sounds.Can you send them if possible to:[email protected]Thanks,

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Moderator
IS THE LAST } NECESSARY?
Yes. The last } closes the first if{ expression!There should always be an even number of { and } braces in any XML expression, since they are always paired with one another... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
Yes. The last } closes the first if{ expression! There should always be an even number of { and } braces in any XML expression, since they are always paired with one another... :(
I MUST BE MISSING SOMETHING, BUT(Condition 1) if{ (DoThis 1) } <==SATISFIED FOR FIRST if{ els{ (Condition 2) <==NOT SATISFIED UNTIL LATER if{ (DoThis 2) } <==SATISFIED FOR SECOND if{ els{ (DoThis 3) } <==SATISFIED FOR SECOND els{ } <==SATISFIES THE FIRST els{ } <== WHAT IS THIS ONE FOR? QUOTE: There should always be an even number of { and } braces in any XML expression, since they are always paired with one another. I COUNT 4 EACH { .....AND 5 EACH } ??

same here

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Moderator

Okay! I've edited my post to remove the extra } from the example...Somehow my eyes must have failed me again. :(

(Condition 1)  if{ (DoThis 1) }  els{ (Condition 2)	  if{ (DoThis 2) }	  els{ (DoThis 3) }    }

For some reason this new forum editor makes a complete hash out of blank spaces and indenting, so the elegant formatting from Visual Studio got lost in the copy/paste operation. :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

"Qui abscondit scelera sua non dirigetur qui confessus fuerit et reliquerit ea misericordiam consequetur..."

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Moderator

:( Roger that, Jan! Wilco...

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.