I have several Planes, that were controlled and directed by a File named FlightLog.lua
For every Plane there is a separate File, that contains the SimVars and Lvars of this Plane. This File is also named FlightLog but extended with the ID of this Aircraft, i.E. FlightLog.DAIJB
The Reason for this is to save my Flights in a MS Access Database. Before starting a Flight, i file FlightPlans, Fuel Amounts, PayLoad, etc. in this DB. Once everything is done, i rename
the File FlightLog.DAIJB to FlightLog.lua and copy it from the Scripts Folder to the FSUIPC Folder. Because of that, i have all Variables according to the used Plane in the FlightLog.lua and
can assure, that the Variables are available at the Runtime. For each of this Aircraft there are different Variables, that will be used, to trigger the Condition where the simulated Joystick Button should be pressed.