• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Quick question values between

Messages
165
Country
southafrica
I want to have some text to be visible when more then 10gallons but less then 15 gallons: I can do it to show when lower then 15 gallons as below
Code:
<Visible>(A:FUEL TANK LEFT MAIN QUANTITY, gallons) 15 &lt; </Visible>

But how do I add syntax to also check more then 10gallons, but less then 15

Thanks
JB
 
Use this :

Code:
<Visible>10 15 (A:FUEL TANK LEFT MAIN QUANTITY, gallons) rng</Visible>
Tom
 
I would like to add to Tom's reply. Which is spot on :-)

Not sure, but I gave up completely.. I hope someone may add..

The "rng" function only seems to work with core variables IE

10 15 (A:FUEL TANK LEFT MAIN QUANTITY, gallons) rng

will work, but...

10 15 (L:MY_LEFT_FUEL, number) rng

doesn't seem to work ( (L:MY_LEFT_FUEL, number) is not null )

I tried and tried but using a L:var & I must revert to "Less than | Greater than | AND"

Which,,, logically, seems illogical.

Any Insight?
Roman
 
Any Insight?
Roman

I don't have a problem using an L:Var or an internal storage register with the rng operator. Your issue is indeed strange....

Good luck!

Bob

just to be complete -- Tested in FSX
 
Last edited:
Since i learned it i'm using RNG widely in FS9.

Code:
      0.1 0.99 (L:ElecM_BusTie1_SW,number) rng
      if{
        (L:ElecM_BusTie1_SW,number) 0.1 - (&gt;L:ElecM_BusTie1_SW,number)
        (L:ElecM_BusTie1_SW,number) 0.6 &lt; 
        if{ 
          0 (&gt;L:ElecM_BusTie1_SW,number)
          1 (&gt;L:DSD_Toggle_Sw_Sound,number)
          }
        }

      -0.99 -0.1 (L:ElecM_BusTie1_SW,number) rng
      if{
        (L:ElecM_BusTie1_SW,number) 0.1 + (&gt;L:ElecM_BusTie1_SW,number)
        (L:ElecM_BusTie1_SW,number) -0.6 &gt; 
        if{ 
          0 (&gt;L:ElecM_BusTie1_SW,number)
          1 (&gt;L:DSD_Toggle_Sw_Sound,number)
          }
        }


      0.2  0.8 (L:FuelM_DMP_Tank1_Valve,number) rng
      (L:ElecM_DC28_BusBattery_V,Volt) 22 &gt;
      &amp;&amp;

Edi
 
Last edited:
Back
Top