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.

XML - IF THEN help needed

Featured Replies

A little help please...I am checking Zero Fuel Weight (ZFW)Expression for ZFW - ((A:TOTAL WEIGHT, POUNDS) (A:FUEL TOTAL QUANTITY WEIGHT, POUNDS) -)Best way to describe what I wantIf ZFW is greater than (>) 44000 then display "OVER WEIGHT" in redelse display "In Limits" in greenI will also check Taxi Weight TOTAL WEIGHT < 51250Here is a mock up of what I'm working towards.http://forums.avsim.net/user_files/88061.jpgThere will be much more to the gauge, and I will have more questions.Thanks for the help

This is what I used.I get a green OVER WEIGHT - changing cargo weight to change ZFW does not change the display%((A:TOTAL WEIGHT, POUNDS) (A:FUEL TOTAL QUANTITY WEIGHT, POUNDS) - 44000 >;)%{if}%OVER WEIGHT%{else}%In Limits%{end}Ideas?

  • Author

Hi,Didn't test but:1. Try to change red and green in the color tag.2. You may have to change the order of "Overweight" and "In Limits" in the Hope it helps,Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

I have it working 50%The correct text will show. The correct color does not...I dropped the ; after the > sign and it started working.Line of code for the text:%((A:TOTAL WEIGHT, POUNDS) (A:FUEL TOTAL QUANTITY WEIGHT, POUNDS) - 44000 >)%{if}%OVER WEIGHT%{else}%In Limits%{end}I have tried both of these lines to change the color:Both default to green...I tried to drop the ; but it did not work.

  • Author

Hi,This code works for my color tag:Color="%('green' 'orange' (A:GPS DRIVES NAV1,bool) ?)" so you could try again:Mind some "Spaces between" !?Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

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.