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.

Help me understand this piece of code

Featured Replies

I came across this "Fuel Flow" code and I am not sure what it is doing. I think it is checking to see if the aircraft has one engine or two engines and then it adjust the fuel flow accordingly. What is the purpose of the "GPH:1 and GPH:2" in the statement?%Fuel Burn: %((A:Eng fuel flow GPH:2, gallons per hour))%{if}%((A:Eng fuel flow GPH:1, gallons per hour) (A:Eng fuel flow GPH:2, gallons per hour) + 2 / )%!03d!% gph%{else}%((A:Eng fuel flow GPH:1, gallons per hour))%!03d!% gph%{end}Thanksgreenco

Hi,(A:Eng fuel flow GPH:2, gallons per hour) is the same as:(A:Eng2 fuel flow GPH, gallons per hour) The string gives fuel flow for single- and dual engine acft.Jan"Beatus ille qui procul negotiis..."

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Thanks JanI thought that was what the code was doing, but I had never seen it expressed that way.greenco

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.