mamica 10 Posted July 22, 2015 Report Share Posted July 22, 2015 OMG, m i brainstopped or it is imposible to code this? So i have variable which is empty. I tryed this: if($contains(#tcode,$nothing)) { then { } else { change attribute(<name="trackingCode">,"value",#tcode) } And i dont know how else can i do this. Any tips? Quote Link to post Share on other sites
zenos 13 Posted July 22, 2015 Report Share Posted July 22, 2015 (edited) use "comparison" if($comparison(#tcode, "=", $nothing)) { then { } else { change attribute(<name="trackingCode">, "value", #tcode) } } Edited July 22, 2015 by zenos 2 Quote Link to post Share on other sites
mamica 10 Posted July 22, 2015 Author Report Share Posted July 22, 2015 haha. thanks mate. I think i need to go take a nap. 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted July 22, 2015 Report Share Posted July 22, 2015 Here is a function for that. alert($IS Empty(""))define $IS Empty(#FIRST VALUE) { return($comparison(#FIRST VALUE, "=", $nothing))} Quote Link to post Share on other sites
Frank 177 Posted July 22, 2015 Report Share Posted July 22, 2015 Here is a function for that. alert($IS Empty(""))define $IS Empty(#FIRST VALUE) { return($comparison(#FIRST VALUE, "=", $nothing))}In all my years coding in Ubot, I never thought of doing things like this. Good one mate! 1 Quote Link to post Share on other sites
itexspert 47 Posted July 23, 2015 Report Share Posted July 23, 2015 Here is a function for that. alert($IS Empty(""))define $IS Empty(#FIRST VALUE) { return($comparison(#FIRST VALUE, "=", $nothing))} Haha its Funny i always use almost the same exact Thing in my Bots! its a small world! Quote Link to post Share on other sites
the_way 52 Posted July 23, 2015 Report Share Posted July 23, 2015 what! thats the most confusing thing i ever seen in ubot code! lol Quote Link to post Share on other sites
anwebservices 5 Posted July 27, 2015 Report Share Posted July 27, 2015 if #variable = "" That's that i do and it works 1 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.