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.

Problem with click code

Featured Replies

This is the click section of code inside a mouse area.(L:LightA, number) ! if{(L:SetValue, number) (>L:MemA, number)1 (>L:LightA, number) }els{ (L:MemA, number) (>L:SetValue, number)0 (>L:MemA, number)0 (>L:LightA, number) }On the first click, the IF parts works perfectly with the value inside the (L:SetValue, number) variable being stored into the (L:MemA, number) variable. This is verified by another gauge showing the value in each of these variables.On the second click, the ELS part runs and resets the MemA and LightA variables back to zero. But the value stored inside the (L:MemA, number) variable does not get transfered back into the (L:SetValue, number) variable. Can someone give me a clue why this isn't working?Glenn

Glenn,At first sight and assuming (L:LightA, number) initializes with 0, on the first click, MemA takes the value of SetValue; therefore SetValue has to be defined elsewhere in the code BEFORE, so in that part SetValue will take its value every cycle, overwriting the value transfered from MemA inside the ...Just a guess.Tom

Thanks, Tom.I'll go back through the code to see if there is a problem elsewhere. This one line has the entire gauge on hold. I even dreamed about it. Darn, gotta get a life.Glenn

You were right, the problem lay elsewhere. Working now. Thanks for the help.Glenn

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.