gillian 0 Posted September 20, 2011 Report Share Posted September 20, 2011 Please can someone help me get this $eval command to work in Ubot 4. Here's how how it appears in 3.5. Basically what I'm trying to do is create a variable #SiteID by taking the first 10 characters of a URL. I'm lost without being able to right click on the variables. And typing the expression in directly doesn't seem to work. It removes the curly brackets. ThanksGillian Quote Link to post Share on other sites
gillian 0 Posted September 23, 2011 Author Report Share Posted September 23, 2011 Please can someone help me get this $eval command to work in Ubot 4. Here's how how it appears in 3.5. Basically what I'm trying to do is create a variable #SiteID by taking the first 10 characters of a URL. I'm lost without being able to right click on the variables. And typing the expression in directly doesn't seem to work. It removes the curly brackets. ThanksGillian Please can someone help me with this? I imagine it's pretty basic for someone who knows Thanks Quote Link to post Share on other sites
JohnB 255 Posted September 23, 2011 Report Share Posted September 23, 2011 Hi Gillian. You wouldn't use the same type of string in v4. Where you have the variables, you would actually drag the variable into the parameter box. This is what your string should look like in v4: http://screencast.com/t/vPpcSMba I hope that helps. John Quote Link to post Share on other sites
gillian 0 Posted September 23, 2011 Author Report Share Posted September 23, 2011 Hi Gillian. You wouldn't use the same type of string in v4. Where you have the variables, you would actually drag the variable into the parameter box. This is what your string should look like in v4: http://screencast.com/t/vPpcSMba I hope that helps. John Thanks John. I can't test it at the moment because my version of Ubot4 isn't working but I see the principle, which is very helpful. Quote Link to post Share on other sites
Eddie Waller 158 Posted September 23, 2011 Report Share Posted September 23, 2011 Also, you can use the built in $substring function, you don't need to use eval for this. 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.