June 9, 200421 yr 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?
June 9, 200421 yr 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.
Create an account or sign in to comment