I’m trying to test for the existence of a folder using SpecialFolder and subfolder and create if it’s not there. Looking at the docs, it looks like this should work, but it’s not. It gets to the code in the Else, pops the messagebox and then no folder is created. What am I missing here?
var doc as FolderItem
doc=SpecialFolder.Documents.child("MyStuff").Child("data")
if doc.exists = true then
MessageBox("Folder Exists")
else
MessageBox("Creating Folder")
doc.CreateFolder()
end if