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.

can I use a variable to call specific script?

Featured Replies

Can it be done to have a variable add to the script name that will be called from a button,

without a whole bunch if IF statements?

I mean..

i have a field that is based on STATUS(CurrentGroups) named GROUP

that sends one of the following result:

bor

cap

int

sar

And a bunch of scripts all with the same beginning

print bor

print cap

print int

print sar

so what i want to do is something like:

(button called script)

set the variable to GROUP field (one of the above)

then call the script prefix and add the variable to the name so that the script called will be

"print (variable)"

Server is on a MAC, but most users are using PCs

Any way to avoid the

if Group="bor"

execute script"print bor"

elseif and so on?

Unfortunately, no. In 7 you can pass a parameter to a script, but you still have to use Ifs to determine which script to run based on the parameter.

  • Author

Thanks for the answer, i'll go the long way then!

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.