Skip 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.

Set Variable as part of a calculation?

Featured Replies

I am creating a calculation as part of a menu set and I wonder if there is a way to create a 'Set Variable' type calculation that for e.g.

$Layout 1 = "Layout 1"

Within the Menu set Action: Perform Script, I would be able to use only one script that could;

Go to Layout: $Layout 1

Does that make sense?

Make the Let function?

I suspect it would make more sense to use the script parameter here. A calculation can create a variable, but it is not clear from your question what would cause the calculation to evaluate and when.

Also keep in mind that local $variables are limited in scope to the current script.

  • Author

Yes, sorry, I wasnt clear myself. In the end as part of the Menu Item Name, I created a Global Variable using athe Let function. The susbsequent script then used that variable to take the user to the correct layout. Seems to be working well. Thanks for your advice.

Have a great day

Create an account or sign in to comment

Important Information

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

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.