Jump to content
UBot Underground

Return Javascript result into a variable or add to list?


Recommended Posts

Anyone knows how to run a javascript code into a script and instead of displaying the result into the ubot browser i want to #Set the result into a variable or $add it to a list.

 

I have tried a few things, like Run Javascript, tried the $eval, tried with Define Function but it all seems not to work for me.

 

Thanks in advance.

Link to post
Share on other sites

It's all on the forum, you just need to search a bit: http://www.ubotstudio.com/forum/index.php?/topic/16080-javascript-and-ubot-variables/&do=findComment&comment=92883

 

However, by "echo" I mean call variable to print it's value, like "counter;" in example on page linked above.

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