October 6, 201114 yr Hi allXML Fs9Is it possible to search a group of L:vars values and extract the highest value?PVE Paul EGLD
October 6, 201114 yr (L:Var1) (L:Var2) min (L:Var3) min (L:Var4) min (L:Var5) min (L:Var6) min etc... ? Roman FS RTWR SHRS F-111 JoinFS Little Navmap
October 6, 201114 yr Author Nice one RomanI thought I was in for multiple if & els'sThanks Paul Paul EGLD
October 6, 201114 yr Isn't "max" the operator that extracs the maximun value between two values rather than "min" Javier
October 6, 201114 yr 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 FS RTWR SHRS F-111 JoinFS Little Navmap
October 6, 201114 yr Hi Roman! Kind of weird, but well, is good to know it. In FS8 I almost can assure you is the opposite. Javier
October 6, 201114 yr 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
October 6, 201114 yr According to the FSX SDK 5 2 min returns 2 5 2 max returns 5 Is the SDK wrong? Gerry Howard
October 7, 201114 yr 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 FS RTWR SHRS F-111 JoinFS Little Navmap
October 7, 201114 yr Author Thanks RomanI didn't know that either as I have only used min & max for ceil & floor.PVE Paul EGLD
October 7, 201114 yr 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