Jump to content
UBot Underground

How to use "return" function?


Recommended Posts

Not like that. I think you misunderstanding.

 

It's

 

:sub abc
  parameter #check_string
  if
     search page $check_string
  then
     return 1

if
  run sub abc
  =
  1
then
  run sub anothersub

 

I think I get what you're saying...I think. Here is how I would do that:

 

:sub abc
  parameter #check_string
  if
     search page $check_string
  then
     set > parameter-$subabcvalue to 1

if
  $subabcvalue 
  =
  1
then
  run sub anothersub

Link to post
Share on other sites

 set > parameter-$subabcvalue to 1

Thank you Crazyflx, this works better :D But for cleaner code, I suggest Seth & Lord implement something useful to use that "return" function correctly.

 

Thanks guys! I'm now addicted with Ubot. I can master almost everything of Ubot now...

Link to post
Share on other sites

wow Thanks Mike D, I never see $return_value before lol (maybe I'm blind). This is exactly what I want. Thanks alot.

 

Damn, could of answered that question a few days ago if I knew you were just looking for the $return function. :)

Link to post
Share on other sites

@crazyflx: no not at all. Thanks for your help and your great contribution. I learned something from you ofcourse

@Aaron: Thank you too mate. I also learned from your bot.

 

@all: I give my best wishes to everyone. Ubot is very easy to learn, I've been playing with Ubot just in 3-4 days and today I made my own complex bot, all seperated modules & my own libraries can handle almost everything I need. Thanks everyone who gave me some very good examples, ubot sources,... If I don't have your sample bots, it will takes me much more longer to make my bot today.

Link to post
Share on other sites

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