Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7475 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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.

This topic is 7475 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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