September 17, 201213 yr Hi, Sorry about this. I've come back to some files I'd written months ago and I have this code function SF260_AP_HDG_PB () if _t('AP_HDG_PB') then ipc.control(66106) else ipc.control(66107) ipc.control(65809) end end Now I can't for the life of me remember what the "if _t('AP_HDG_PB') then" does. I think I used after seeing it mentioned on a post on this forum - but can I find it now? If anyone could let me know what it's for or point me to where it's explained, I'd be most grateful.
October 8, 201213 yr Sorry, I have overseen this post. the _t is a LINDA specific function and this is a toggler. If you have a function example_ON () and example_OFF (), you use this toggle function in this way: function example_toggle () if _t('anyname') then example_ON () else example_OFF () end end You can use there also LUA variables as trigger. Example as above, but have a look at the _tl now function example_toggle () if _tl("L:Your_Lua_Variable, 0) then example_ON () else example_OFF () end end Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
Create an account or sign in to comment