ubotapp 0 Posted December 7, 2011 Report Share Posted December 7, 2011 I would like to use Javascript to do some complicated string manipulation. How can I pass in multiple variables #var1, #var2, #var3, run javascript, and then return #value? I have version 4.0 Thanks Quote Link to post Share on other sites
skanck 2 Posted January 31, 2012 Report Share Posted January 31, 2012 bump me too Quote Link to post Share on other sites
JohnB 255 Posted January 31, 2012 Report Share Posted January 31, 2012 What is it you are trying to achieve exactly? John Quote Link to post Share on other sites
skanck 2 Posted January 31, 2012 Report Share Posted January 31, 2012 Hey John i have a csv file with 15 scraped urls in itall the urls are mostly the same except a folder on the domainfor example: http://ubotstudio.com/tutorials/blahblah.html,http://ubotstudio.com/tutorials/adifferentblah.html,http://ubotstudio.com/tutorials/otherblah.html,and so on I want to search through it and find a specific url and determine its position in the file (ie column number)then return the column number as a variable to use elsewhere in the bot i have tried $contains to search the variable (the url is set as a variable) and cannot get it to work :| probably easy peasy to a JS ninja like yourself thanks ice cold beer[4] going down well Quote Link to post Share on other sites
JohnB 255 Posted January 31, 2012 Report Share Posted January 31, 2012 It doesn't sound like it needs any javascript. You can loop through the list and insert the if(list item)--->contains(something) condition... John 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.