shredded Posted August 26, 2015 Share Posted August 26, 2015 Is there a way to use an If statement to determine what button was pressed and execute scripts? I am trying to make a few different buttons and I would like them to use 1 script file and based on the buttons ObjectName it would run different results... Link to comment Share on other sites More sharing options...
Raybaudi Posted August 26, 2015 Share Posted August 26, 2015 I am trying to make a few different buttons and I would like them to use 1 script file and based on the buttons ObjectName it would run different results... The solution is to use 1 script not based on the buttons ObjectName, but on the Script Parameter that you'll pass to the script. Link to comment Share on other sites More sharing options...
comment Posted August 26, 2015 Share Posted August 26, 2015 I am trying to make a few different buttons and I would like them to use 1 script file and based on the buttons ObjectName it would run different results... What exactly is entailed in "run different results... "? Link to comment Share on other sites More sharing options...
shredded Posted August 27, 2015 Author Share Posted August 27, 2015 The solution is to use 1 script not based on the buttons ObjectName, but on the Script Parameter that you'll pass to the script. Ah yes, thanks, got it working with this information. =) Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 3300 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 accountSign in
Already have an account? Sign in here.
Sign In Now