Jump to content
The simFlight Network Forums

Neec help for "if"condition's


Recommended Posts

Want to know in pmlogics, doesifcondition always end with a endif.?

I don't write or support PM, you are in the wrong place I'm afraid. Are you talking about pmSystems? If so, why not look at the examples it comes with? I think there's documentation available too.

Regards

Pete

Link to comment
Share on other sites

Yes Pete, was refering to the PM systems my bad, sorry. Currently, looking for the documentations.

Well, looking just at the LGC files supplied in the pmSystems package I see two ways of doing "if" statements. Examples:

if mastercautionswitch then

sixpackcaution = 0

mastercautionswitch = 0 [1]

endif

or

if busselect1 = 4 then acvolt = 115

So, if it is all on one line, no endif. Otherwise end the sequence of resulting actions with endif.

Regards

Pete

Link to comment
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.