Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.

if/endif block in Bespoke events

Hi

I know we can use if/goto to assist programming logic in Bespoke events, however, I'm finding that in complex routines, its ending up making for very convoluted code. Especially if Ive got multiple 2 line commands I want to run, I'm finding having to goto/jump all over the place within the event.

Is there any chance you could add an  if/endif block whereby any commands listed between the if and endif commands are executed if  the IF logic is true?

Regards
David
Regards
David

Comments

  • Could you give an example of what you want to do or are trying to do? I try to minimise the use of goto as much as possible. 

    Just try to build your events in a logical order and you can avoid a lot of jumping around.
    Steve McNitt
  • If I have a multi-line if block I define a separate bespoke event that lists every statement in that block.

    Then I define a new bespoke event that contains the IF an "Call" the first bespoke event in the body of that IF. This way a single line Call BE will execute multiple statements and it keeps the IF neat and tidy.
Sign In or Register to comment.