Zirius 1 Posted September 9, 2014 Hello! seems like, only integer variables can be used with if() exist. How about strings? and how do you use strlen()? always getting unmatched brackets. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted September 9, 2014 Hello! seems like, only integer variables can be used with if() exist. How about strings? if(.@string$ != "") <this will be run for empty strings> and how do you use strlen()? always getting unmatched brackets. strlen() script command doesn't exist. I assume you mean getstrlen(). It's used like this: getstrlen("mystring"); // For fixed stringsgetstrlen(.@my_string_var$); // For strings in variables//You can even mix them up:getstrlen("Hello " + strcharinfo(0)); Just make sure you close all the brackets you open 1 Zirius reacted to this Quote Share this post Link to post Share on other sites
0 Zirius 1 Posted September 9, 2014 Sorry, I thought it works, since I observe most PHP functions exist at Hercules. LOL. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted September 9, 2014 Sorry, I thought it works, since I observe most PHP functions exist at Hercules. LOL. to be specific, they are not php functions but standard functions for most languages.. 1 Zirius reacted to this Quote Share this post Link to post Share on other sites
Hello! seems like, only integer variables can be used with if() exist. How about strings?
and how do you use strlen()? always getting unmatched brackets.
Share this post
Link to post
Share on other sites