Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help - what is _t ?

Featured Replies

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.

  • 3 weeks later...

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.