how to check if a argument is text

  • 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.

vincent

Member
Jun 23, 2017
2
0
0
20
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
 
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>]
 
Status
Not open for further replies.