Hello,
How can I check if there exist a file in /file?? For example there exists a txt file called OK.txt
:if ( the file OK exists in /file ) do={ :put "lala" }
How can I write that statement for the script??
Thanks for your help
:if ([:len [/file find name="filename"]]) do={
:put "file exists";
}
:if ([:len [/file find name="fileverify"]]) do={
:put "file exists";
}
:if ([:len [/file find name="fileverify.txt"]]) do={
:put "file exists";
}
:if ([:len [/file print where name="fileverify.txt"]]) do={
:put "file exists";
}
this way worked out!:if ([:len [/file find name="fileverify"]] > 0) do={
:put "file exists";
}
:if ([:len [/file find type="script"]]) do={import .rsc files}
:if Scripts only works fine with numbersHello,
How can I check if there exist a file in /file?? For example there exists a txt file called OK.txt
:if ( the file OK exists in /file ) do={ :put "lala" }
How can I write that statement for the script??
Thanks for your help