seothtt 1 Posted May 29, 2012 Report Share Posted May 29, 2012 I have a ui drop down, with 3 values in it, corresponding variable: #search. I want to run an if command, if value 1 then run this define, if value 2 then run this define, if value 3 then run this define. I'm just not sure what condition to run commands, what do I need to put in there to pull the #search variable with the right value? Thanks, Richard Quote Link to post Share on other sites
seothtt 1 Posted May 29, 2012 Author Report Share Posted May 29, 2012 Sorry, I just figured it out. Thanks, Richard Quote Link to post Share on other sites
Security 17 Posted May 30, 2012 Report Share Posted May 30, 2012 Id like to hear how if you dont mind. Quote Link to post Share on other sites
seothtt 1 Posted May 30, 2012 Author Report Share Posted May 30, 2012 I ran an If Condition for each variable, so for mine I have 3 If statements. In the If Statement, I use $contains, for the text I put in the variable that it goes with, and in the Text to search for, I put in the value. For example, my values are Google, Yahoo, Bing. So in the first If command, I have $contains, Text #search, Text to search for, Google. In the Then, I run the define statement I setup for Google. In the Else part, I left it blank. Richard Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.