Jump to content
Sign in to follow this  
phjvh

RPM Gauge - combining values

Recommended Posts

Hi,I'm trying to combine these two values in the same string. I've tried with & at the end and | "or" at the end as well with the combined amount wrong - and sometimes doubled. What am I doing wrong?The reason for the difference is because when the power is applied the value for the amount changes. 1100 rpm is at idle. I don't want to have 2 gauge needles with one disappearing if possible, also, I need this code for the "tooltip" for the mouse over.Here are the values:(A:General eng1 rpm,RPM) 6.87 / 1100 min (A:General eng1 rpm,RPM) 11.37 / 1100 maxPlease help.Regards,Benny

Share this post


Link to post
Share on other sites

Hi,May be this works:%((A:General eng1 rpm,RPM) 6.87 / 1100 min )%!f!(or%!d!)(spaces)%((A:General eng1 rpm,RPM) 11.37 / 1100 max )%!f!jan

Share this post


Link to post
Share on other sites

Hi Jan,The code below worked for the string in the tooltip but I can't figure out how to make it work for the needle on the gauge.Only the last portion of gauge works. Any Ideas?(A:General eng1 rpm,RPM) 6.87 / near 1100 min (A:General eng1 rpm,RPM) 11.37 / near 1100 maxThanks,Benny

Share this post


Link to post
Share on other sites

Hi,Try something like:(A:General eng1 rpm,RPM) 1100 < if{ (A:General eng1 rpm,RPM) 6.87 / } els{ (A:General eng1 rpm,RPM) 11.37 / }Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...