Solved Count an amount of characters

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

memes

Member
Jun 24, 2018
23
2
3
24
Hello, I was wondering how I could count the amount of characters a variable has, example (Doesn't work when I try it in game):
code_language.skript:
command /create [<text>]:
    trigger:
        if "%arg%" contains 4 characters:
            send "ok"
        else:
            send "The text must contain 4 characters!"

How could I do this using no add-ons?
 
Was this actually solved?
If not, its
code_language.skript:
length of {variable}
it probably works for args as well, but I have never tried it!
 
Status
Not open for further replies.