blumi40 222 Posted June 13, 2013 Report Share Posted June 13, 2013 hi folks here is a small example how to use Switch Case from the free Plugin from William ui text box("Username", #username)ui text box("Password", #password)comment("###now we must check if username and password is set here we do it with if else")if($comparison(#username, "=", $nothing)) { then { alert("username not set") }}if($comparison(#username, "=", $nothing)) { then { alert("password not set") }}comment("### here we do the same wit switch case wich is much more easyer")plugin command("Open.Framework.dll", "Open Switch", $nothing) { plugin command("Open.Framework.dll", "Open Case", #username) { alert("username not set") } plugin command("Open.Framework.dll", "Open Case", #password) { alert("password not set") }} i hope u understand and like itFree PlugInTemporare downloadlinkhttp://www.sendspace.com/file/f0cnbxswitchcase.ubot 2 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 13, 2013 Report Share Posted June 13, 2013 Awesome!! I saw the other TUTS and glad you are doing more. I was going to ask in other thread if there is PDF or TUT on the rest of the commands. Thanks William & blumi40 btw love the signature, cracks me up every time I see it.Sometime when I'm frustrated I end just sitting here watching it for a while, then I can get back to it!!! Looking forward to more examples of the other commands. Thanks,TC 1 Quote Link to post Share on other sites
blumi40 222 Posted June 13, 2013 Author Report Share Posted June 13, 2013 yeah life is to hard and to fast to forget the smile on it Quote Link to post Share on other sites
Chris M 55 Posted June 28, 2013 Report Share Posted June 28, 2013 Using the provided code I get an error. But if I change "plugin command" to "plugincommand" without a space it allows me to switch back to node view. Is this the correct syntax? Quote Link to post Share on other sites
blumi40 222 Posted June 28, 2013 Author Report Share Posted June 28, 2013 u need the plugIn in my example postwithout it is not possible Quote Link to post Share on other sites
Chris M 55 Posted June 28, 2013 Report Share Posted June 28, 2013 I added it in to the /plugins/ folder before adding the code. After adding it into the folder I still get same error. Quote Link to post Share on other sites
blumi40 222 Posted June 28, 2013 Author Report Share Posted June 28, 2013 tools plugins addplugin 1 Quote Link to post Share on other sites
Chris M 55 Posted June 28, 2013 Report Share Posted June 28, 2013 That worked. Thanks man! I appreciate it! Quote Link to post Share on other sites
don 1 Posted June 30, 2013 Report Share Posted June 30, 2013 Amazing, time to get rid of complex If Then Else statements Quote Link to post Share on other sites
Praney Behl 314 Posted July 11, 2013 Report Share Posted July 11, 2013 Awesome BIG (+1) to you. Just a quick question; how are the "System Wide Thread safe container" & "Thread safe container" different from normal "thread" command? What is the use and if someone can provide an example that will be awesome! ThanksPraney Quote Link to post Share on other sites
blumi40 222 Posted July 11, 2013 Author Report Share Posted July 11, 2013 look at the howto for that i was answer this questions some hours agohttp://www.ubotstudio.com/forum/index.php?/topic/14205-howtorun-thread-safe-container/ Quote Link to post Share on other sites
jamesfar 15 Posted December 31, 2013 Report Share Posted December 31, 2013 can someone reupload the plugin? Quote Link to post Share on other sites
blumi40 222 Posted December 31, 2013 Author Report Share Posted December 31, 2013 http://www.sendspace.com/file/pj5atq 1 Quote Link to post Share on other sites
jamesfar 15 Posted December 31, 2013 Report Share Posted December 31, 2013 thanks blumi Quote Link to post Share on other sites
a2mateit 395 Posted March 3, 2014 Report Share Posted March 3, 2014 Anybody out there want to come up with a little more complex example? I don't quite understand how to use it with the provided example. Great plugin, just wish I understood how to use a couple of the features... Quote Link to post Share on other sites
blumi40 222 Posted March 3, 2014 Author Report Share Posted March 3, 2014 it is nearly the same as u know that from other scriptlaguagesto understand it a bit morehave a look at the switch case functions on phpwhich u can find herehttp://php.net/manual/en/control-structures.switch.phpat the end it is very simple and in many cases a good replacement for if ifelse else 1 Quote Link to post Share on other sites
imihandstand 0 Posted August 26, 2014 Report Share Posted August 26, 2014 Could please somebody reupload this plugin? Both links are down. Thank you! Quote Link to post Share on other sites
Eddie 14 Posted October 16, 2017 Report Share Posted October 16, 2017 is anybody have this plugin switch case ,please help to offer a download link, thanks a lot!!!! 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.