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.

clearing variable after script runs.

Featured Replies

In a script where multiple variable are used is there a way to clear them to nothing once the script is done.

I'd love a way to clear all variables with about have to specify each and every one.

Local script variables (single $) don't need to be cleared. You could arrange your script to only use those. If you're calling subscripts, you'd need to pass those locals to other locals via a Script Parameter.

As DJ says, it's best to use local variables unless you have some reason to use globals.

As Vaughan notes, you clear a variable the same way you clear a field: setting it to "".

One nice technique to know is that you can set multiple variables in one step using a Let calculation like so:

Set Variable( $clearMyVars ; 



  Let( [ 

    $$var1 = "" ; 

    $$var2 = "" ; 

    $$var3 = ""   ] ; 



    "voila" )



)

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.