cheater1 0 Posted September 12, 2013 Report Share Posted September 12, 2013 Is there a "go to" command? For example, I want to check if a text exist it will jump to line 50 if not it will jump to line 100. Quote Link to post Share on other sites
the_way 52 Posted September 12, 2013 Report Share Posted September 12, 2013 (edited) no, but an easy way to do that is to create 2 defines, and then if text exist "do x" if not "do y" does that make sense? Edited September 12, 2013 by quite_interesting Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 12, 2013 Report Share Posted September 12, 2013 if($contains(#variable or text, "Ubot rules!")) { then { alert("true") } else { alert("false") } } or if($comparison(#from file, "=", "put something here u r looking for")) { then { alert("true") } else { alert("false") } } theree is also "else if" indtead "else" under "flow commands" the under "Qulifier functions" in "parameters". You can check this too. http://wiki.ubotstudio.com/wiki/Main_Page HTH, TC Quote Link to post Share on other sites
cheater1 0 Posted September 12, 2013 Author Report Share Posted September 12, 2013 Thanks for the help guys. Quote Link to post Share on other sites
Frank 177 Posted September 22, 2013 Report Share Posted September 22, 2013 Goto commands may sound like a God sent, but they are really bad programming in the long run. Proper structure will force you to think out your code and as the guys mentioned, you can then call functions with defines. 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.