[Support] Split function for handling text strings
-
There is some function to separate a certain text string based on a specific character, something like this:
split ("String / dlkf / lkdf / ks", "/");For each "/" add me to an array
Kalitos
strTok(string, token)is what you're looking for. It returns an array of strings.For ex.
strTok("test,string,here", ",")will return["test", "string, here"]strTok("test;string;here", ";")will return["test", "string", "here"] -
Kalitos
strTok(string, token)is what you're looking for. It returns an array of strings.For ex.
strTok("test,string,here", ",")will return["test", "string, here"]strTok("test;string;here", ";")will return["test", "string", "here"]TheHiddenHour excellent, just what I'm looking for, I thank you.
Now, you know of some function that helps me to know if a certain word is inside an array that contains a word in each position. -
TheHiddenHour excellent, just what I'm looking for, I thank you.
Now, you know of some function that helps me to know if a certain word is inside an array that contains a word in each position.Kalitos Can you be a bit more specific? If you want to know if an array contains a value,
isInArray(array, value)should be able to do it. -
Kalitos Can you be a bit more specific? If you want to know if an array contains a value,
isInArray(array, value)should be able to do it.TheHiddenHour It is just what I need. Thank you.
One last question.
Is the syntax of this line correct?arratNewWeapon[array.size]=temp;Or it should be like this:
arratNewWeapon[arratNewWeapon.size]=temp; -
TheHiddenHour It is just what I need. Thank you.
One last question.
Is the syntax of this line correct?arratNewWeapon[array.size]=temp;Or it should be like this:
arratNewWeapon[arratNewWeapon.size]=temp;Kalitos The second one is correct.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login