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.

Extracting the highest value

Featured Replies

Hi allXML Fs9Is it possible to search a group of L:vars values and extract the highest value?PVE

Paul EGLD

  • Author

Nice one RomanI thought I was in for multiple if & els'sThanks Paul

Paul EGLD

Isn't "max" the operator that extracs the maximun value between two values rather than "min" Javier

Javier, No. I always have to remember "opposite" to use them correctly. max = Returns a value no greater than last stack valuemin = Returns a value no less than last stack value Ex. 53 46 min = 5353 46 max = 46 Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Hi Roman! Kind of weird, but well, is good to know it. In FS8 I almost can assure you is the opposite. Javier

For example the following code chooses 30 when IAS drops below 30: (A:Airspeed select indicated or true,knots) 30 max Kind of weird, is FS8. Javier

According to the FSX SDK 5 2 min returns 2 5 2 max returns 5 Is the SDK wrong?

Gerry Howard

SORRY GUY'S! Yes,, you all are correct .. My Example was based on the "non" FS SDK description from FS02, without testing.. Except.. If using them for a "ceiling" or a "floor" -- THAT's when to start thinking backwards. Me bad. PVE ( Paul ) , Your code should be like this instead.. (L:Var1) (L:Var2) max (L:Var3) max (L:Var4) max (L:Var5) max (L:Var6) max ... etc. P.S. Should've had at least 2 more cups of coffee before posting! Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

  • Author

Thanks RomanI didn't know that either as I have only used min & max for ceil & floor.PVE

Paul EGLD

P.S. Should've had at least 2 more cups of coffee before posting! Roman
Ha ha ha ha ha, don't worry Roman. Javier.

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.