1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to check if a argument is text

Discussion in 'Skript' started by vincent, Jun 23, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. vincent

    vincent Member

    Joined:
    Jun 23, 2017
    Messages:
    2
    Likes Received:
    0
    i am new to skript and i need some help.

    so i was creating a command and i need to check if an argument is a text
    it doesnt matter what is says, but that there is some text

    command /f <text> <text>:
    arg 1 is "create":
    arg 2 is anything

    also i need to know how to make the second argumet optional

    already thanks for the help
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    The argument has to be a text because that's what you defined it as... you don't need to check if it is.

    To make the second argument optional put it in square brackets: [<text>]
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    ty
     
Thread Status:
Not open for further replies.

Share This Page

Loading...