iglow 8 Posted May 3, 2010 Report Share Posted May 3, 2010 Ive got a loop with a long "IFs" around 10. I would like to put them all into EITHER to save some time, so if either of this 'IFs' happends then bot does some action and doesnt check all 10. Either can be for many instances that are IF or can be just for 2 short ones? ANd the second question - can EITHER be used without "IF' before it? So i could avoid doing all 10 things whe ni need just 1? Quote Link to post Share on other sites
soulpower 3 Posted May 11, 2010 Report Share Posted May 11, 2010 i'm also curious about this Quote Link to post Share on other sites
alcr 135 Posted May 11, 2010 Report Share Posted May 11, 2010 I'm not sure on how 'either' works. But it feels like if putting it into the 'else' would also work. Quote Link to post Share on other sites
iglow 8 Posted May 11, 2010 Author Report Share Posted May 11, 2010 Yes but would be cool if either could have like 1000 ones, then 1 else. then we get 1 posisbility working and then it stops checking 999 other eithers and just goes where it should. maybe seth could say ? Quote Link to post Share on other sites
soulpower 3 Posted May 15, 2010 Report Share Posted May 15, 2010 yeah this would be a huge help...it's really tedious to make each one on it's own and it takes up more space in the script. Quote Link to post Share on other sites
theninjamanz 29 Posted May 17, 2010 Report Share Posted May 17, 2010 yeah this would be a huge help...it's really tedious to make each one on it's own and it takes up more space in the script. I use either's quite frequently as part of IF's I've never had a problem with them. Such as Either text X or Text B is present then do blah blah blah else do bleee. Don't see why it wouldn't work for what you're trying to do. Quote Link to post Share on other sites
soulpower 3 Posted May 19, 2010 Report Share Posted May 19, 2010 I use either's quite frequently as part of IF's I've never had a problem with them. Such as Either text X or Text B is present then do blah blah blah else do bleee. Don't see why it wouldn't work for what you're trying to do. no, i'm trying to do Either text A or text B or text C or text D or text E or text F is present THEN do blah blah Quote Link to post Share on other sites
iglow 8 Posted May 19, 2010 Author Report Share Posted May 19, 2010 Yep either aka OR if 1 is there we do X and not check 100 variables Quote Link to post Share on other sites
vibra 1 Posted February 3, 2011 Report Share Posted February 3, 2011 Hey guys.. You should be able to copy and paste multiple instances of the EITHER elements. It's just a simple conditional statement. And yes, you can use it without the IF condition. I hope that helps. 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.