Check if file exists

  • 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 community!

    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.

CormanYT

Active Member
Jan 6, 2018
122
5
18
I want to use like "if file exists" for my skript. It is getting YAML config so I need help with this.

code_language.skript:
if file "plugins/iEssentials/config.yml" doesn't exist:
if file "plugins/iEssentials/config.yml" doesn't exists:
if file "plugins/iEssentials/config.yml" isn't existent:
if existence of file "plugins/iEssentials/config.yml" is false:

These are examples of what I'm trying to get.

ADDONS: Skript-Yaml, SkQuery (Lime)
 
You already gave the solution:
code_language.skript:
if "plugins/iEssentials/config.yml" doesn't exist:
 
You already gave the solution:
code_language.skript:
if "plugins/iEssentials/config.yml" doesn't exist:
Oh wow! I thought it wouldn't be that because it doesn't have file before the "". Thanks! I'll try it out and see if it works.
 
you don't need skquery for this, its built into skript-yaml
 
Status
Not open for further replies.