Jump to content
Sign in to follow this  
ptimale

two condition is true syntax ?

Recommended Posts

Good morning

Google translation

happy new year 2024

I don't know how to write the syntax

FBW A32NX

I want two conditions to be met to validate a function

example :
(L:A32NX_LGCIU_1_NOSE_GEAR_DOWNLOCKED)·0·!=·if
AND
(B:LIGHTING_LANDING_1_Set)·2·!=·if

{ 0 (>B:LIGHTING_LANDING_1_Set)} els{ 2 (>B:LIGHTING_LANDING_1_Set)}

What would be the syntax

THANKS

Share this post


Link to post
Share on other sites

(L:A32NX_LGCIU_1_NOSE_GEAR_DOWNLOCKED)·0·!=·(B:LIGHTING_LANDING_1_Set)·2·!= and·if{ 0 (>B:LIGHTING_LANDING_1_Set) } els{ 2 (>B:LIGHTING_LANDING_1_Set) }


LORBY-SI

Share this post


Link to post
Share on other sites

thanks for putting me on the right track

My goal is that TO switches automatically, when gear down in approch

here is the correct syntax, I don't know if it's in the rules of the art or if we can do better

(SPLIT:13000)
(L:A32NX_LGCIU_1_NOSE_GEAR_DOWNLOCKED,·Number)·0·>·(B:LIGHTING_LANDING_1_Set)·3·<·and·if{·0·(>B:LIGHTING_LANDING_1_Set)·}·els{·2·(>B:LIGHTING_LANDING_1_Set)·}
 

Share this post


Link to post
Share on other sites
Posted (edited)
4 minutes ago, ptimale said:

automatically

In that case look into the LISTEN_FOR_RPN script header and/or the [..] syntax. 
Or even better, check out the CONVERSATION feature, a special form of script file in AAO.

Edited by Lorby_SI

LORBY-SI

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