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.

Finding the lowest of multiple variables

Featured Replies

Hi,Does anyone know of a neat way to find the lowest in a group of variables?I.E I have 5 variables with different values and I need to pick the lowest value at any given time.Any ideas?

Hi Paul,This is what first came in mind: (maybe not the most efficient:-))(L:Var1,number) (>L:VarMin,number) (L:Var2,number) d (L:VarMin,number) < if{ (>L:VarMin,number) }(L:Var3,number) d (L:VarMin,number) < if{ (>L:VarMin,number) }(L:Var4,number) d (L:VarMin,number) < if{ (>L:VarMin,number) }(L:Var5,number) d (L:VarMin,number) < if{ (>L:VarMin,number) }Use (L:VarMin,number) as referenceHope this helpsTom

Tom,Much more efficient than the route my brain was going!Many thanks,

Hi Paul,Glad it was useful! If you need to handle Var1..Var5 independent from VarMin within a gauge, you can use a macro:(L:Var1,number) s0(L:Var2,number) d l0 < if{ s0 }(L:Var3,number) d l0 < if{ s0 }(L:Var4,number) d l0 < if{ s0 }(L:Var5,number) d l0 < if{ s0 }l0And then check the VarMin Value ie:..@VarMin 10 < if{ XXX } etcCheersTom

  • Author

Euhh....What's wrong with:var1 var2 var3 var4 var5 min min min min :-) ??Cheers, Rob Barendregt.

"What's wrong with:var1 var2 var3 var4 var5 min min min min :-) ??"I can't see anything. Should be something??:-lol:-lol:-lolCheersTom

Ok thanks... Sorry for being thick but what does min do?

Paul,min takes the smallest of two values. ie "10 12 min" returns 10.What Rob showed seems to be the most efficient way I was talking about :-)Regards,Tom

Excellent thanks,

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.