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.

<Case> in <Click >

Featured Replies

Hi all Will work in . Tried:- 1 2 5 10 15 5 (L:SetValue, number) case =! if{ 1 (>L:Flaplock,bool). No good, Want L:Flaplock,bool to give 1 if the case numbers are not entered.

Paul EGLD

Hi,I still don't understand what you want to do here, but the case operator does work.As it reads: your variable L:Setvalue should have 6 possible values: 0,1,...5, and depending on this value, the result of the "case" is that one of the 5 values is pushed onto the stack.So: 1, if Setvalue=5and 15, if Setvalue=0Next to the "case" you have =!; but "unequal" to what ?? There's should be another value on the stack to test for un-equality.But I feel you try to use the "case" for some purpose it isn't ment for. Like what do you mean with " if the case numbers are not entered" ?? Rob

  • Author

Hi Rob Putting the flap setting numbers in the FMC scratchpad I am only allowed 1 2 5 10 15. If the wrong number entered it must show INVALID ENTRY I need an L:var to do this.

Paul EGLD

Paul,"case" operator doesn't seem to be the best solution for what you want.Maybe this one works:(Setvalue) sp0l0 1 == l0 2 ==l0 5 == l0 10 ==l0 15 ==+ + + + ! if{ INVALID ENTRY }Tom

  • Author

Tom Yes it works perfectly, As I get deeper into this thing the maths gets harder. Thanks again. Paul

Paul EGLD

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.