Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

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.

Is it possible to use a Let variable to verify the value of a global variable?

Featured Replies

Could this be done using a Let

$SelectedSearchColumn = first_name and $$first_name = "descending"

For example, can I do something like this?

("$" & ~varName) = "descending"

This is my attempt...which does not work.

Let ( [
    ~varName = "first_name"
    ] ;
    $SelectedSearchColumn = ~varName and ("$$" & ~varName) = "descending"
)

Not sure what you're trying to do here. What exactly does "verify the value of a global variable" mean?

 

 

 

Perhaps you meant something like =

Let ( [
varName = "first_name"
] ;
Evaluate ( "$$" & varName ) = "descending"
)

This would return true if a previously declared global variable named $$first_name exists and its value is "descending". Though why would this be preferable to simply =

$$first_name = "descending"

Edited by comment

  • Author

Sorry, I did not do a good job asking the question but you solved the problem for me.

 

This worked:

$SelectedSearchColumn = varName and Evaluate ( "$$" & varName ) = "descending"

Thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.