Jump to content
Sign in to follow this  
regalado1234

OR logical operator

Recommended Posts

I've made to give a litle solution to mi problem posted a litle down but I don make that when NAV 1 OR APR are selected the different texts appear, my code is: (A:AUTOPILOT APPROACH HOLD,bool) || (A:AUTOPILOT NAV1 LOCK, bool)%( (A:GPS DRIVES NAV1,bool))%{case}%{:0}VOR/LOC%{:1}LNAV%{end}now how works the OR clausule can it give true when the first operator in the stack is 1 and the other 0 and viceversa??Thanks a LotHelio Alberto Regalado Moreira

Share this post


Link to post
Share on other sites
Guest bartels

Try: (A:AUTOPILOT APPROACH HOLD,bool) (A:AUTOPILOT NAV1 LOCK, bool) || Arne Bartels

Share this post


Link to post
Share on other sites

Hi:Well It did not work at all it only show the text when APR is selected, so as I found out that when APR is active NAV deactive and viceversa, I decided to make a 2nd element exactly equal to the first only that in visible I put only 1 variable.It may not be the optimal but works pretty well.Thanks a lot for everythingHelio Alberto Regalado Moreira

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...