Hi everyone,
I'm currently working on a high score table for Omeganaut, and I have a new basic question:
Is there a simple way to get the length of a string var?
And what about the length of an int?
Thanks for your insights
Variable length?
Moderator: Moderators
Re: Variable length?
Hi Ats,
K
Sure, just use length()
Code: Select all
string myString = "Hello";
int myStringLength = length(myString);
Same thing, just convert your int to a string first before using length()
Code: Select all
int myInt = 12345;
int myIntLength = length(intToStr(myInt));