Jump to content
UBot Underground

[HowTo]..use switch case


Recommended Posts

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 it
Free PlugIn
Temporare downloadlink
http://www.sendspace.com/file/f0cnbx

switchcase.ubot

  • Like 2
Link to post
Share on other sites

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

  • Like 1
Link to post
Share on other sites
  • 2 weeks later...

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?

Link to post
Share on other sites
  • 2 weeks later...

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!

 

Thanks

Praney

Link to post
Share on other sites
  • 5 months later...
  • 2 months later...

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...

Link to post
Share on other sites

it is nearly the same as u know that from other scriptlaguages

to understand it a bit more
have a look at the switch case functions on php

which u can find here
http://php.net/manual/en/control-structures.switch.php

at the end it is very simple and in many cases a good replacement for if ifelse else

  • Like 1
Link to post
Share on other sites
  • 5 months later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...