How do I evaluate a string value as being a file or a folder?
I have a Scrolling List Field that supports drag and drop and I want to loop through the list and determine which entries are files and which are folders.
Probably another simple solution that I am just not seeing.
I am really having a hard time with the whole "Write code in English thing". LOL
Check if file or folder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi wake,
Best regards,
Mark
Code: Select all
if there is a folder "folder name" then
-- it is a folder
else if there is a file "file name" then
-- it is a file
else
-- it doesn't exist
end if
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode