pdpo Posted November 30, 2012 Report Share Posted November 30, 2012 Hi all, i havent gotten much expertise with lua and I am trying to make s small script. I read the flight number, airline string, tail number, and so on (ofsets 3130 and further) and display them on a widefs connected computer with the display.show functionality. So far so good. On the display I see the following for a variable (plane_type) I have defined in the script : Piper But when I add a line in the script like this : if (plane_type == "Piper") then ... end i dont enter the code between the 'then' and 'end'. It seems that somehow the if never returns true. Any idea? Oh, the plane_type is filled in by : plane_type = ipc.readSTR(0x3160,24) Thanks a lot, Peter Depoortere Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now