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

Featured Replies

I have script that does a lot of other thing, but one of the first things it does is run a diffrent script that set 5 variables using the Set Variable command. This works fine on it's own, but when the variable script is called from inside a diffrent script, it skips all set variable steps.

Do the all set variable steps have to be wihtin the main script?

$ variables exist within a script. $$ variables persist.

See here.

Variables

You could pass the values of the variables via a script parameter to your subscript or use global variables which will retain their values for that particular file.

Set Variable does work as a subscript, but if the variables are of the $ variety, they will be local to each subscripts. Try using two $$ for the variables to declare them as global to the file.

  • Author

I did try using "$$" but the script still skipped all Set Variables steps. I witnessed using the Script Debugger

Is the context correct when the subscript is performed ?

  • Author

Yes, if I run the script alone it works fine

Maybe you can post an example file illustrating the problem, or at least screenshots of the scripts.

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.