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.

String Code Help

Featured Replies

Hi All,I've been trying to combine different changes of some A:var codes into one string and it doesn't show anything but a 0 "zero". Here is the code I have without all the particulars. Do I need to add more "if"'s or "els"'s?Please help.%((A:code1) 50 < if{ (A:code2) 2 * } (A:code1) 60 < (A:code1) 50 >= & if{ (A:code2) 3 * } (A:code1) 70 < (A:code1) 60 >= & if{ (A:code2) 4 * } (A:code1) 80 < (A:code1) 70 >= & if{ (A:code2) 5 * } (A:code1) 80 > if{ (A:code2) 6 * })%!4d!BTW: If I put just one segment into the string it works for that particular event, such as: %((A:code1) 60 < (A:code1) 50 >= & if{ (A:code2) 3 * })%!4d!So, I know the code is correct - but not when put together.Thanks in advance,Benny

Hello Benny Try %((A:code1) 50 < if{ (A:code2) 2 * } 51 60 (A:code1) rng if{ (A:code2) 3 * } 61 70 (A:code1) rng if{ (A:code2) 4 * } 71 80 (A:code1) rng if{ (A:code2) 5 * } (A:code1) 81 > if{ (A:code2) 6 * })%!4d! not tested

Paul EGLD

Thanks PVE,I plugged in my numbers and away she went!!! Perfectly.One question please. What exactly does the "rng" in the code do? I couldn't find it in my notes from Arne Bartels, or maybe I've overlooked it.Thanks again,Benny

Hello Benny Glad you got it working, rng is range ie. 40 to 50 counts all numbers inside. Or rng ! excluding all numbers inside.

Paul EGLD

  • Author
  • Moderator

One of the things that isn't explained anywhere in the SDK is that the syntax rules for XML logic is entirely different than from that used elsewhere in the XML gauge script... *:-*

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.