A quick test indicates that Xojo implements short-circuit evaluation, allowing the following code to work even when f is nil:
f = GetFolderItem(FolderPath, FolderItem.PathTypeShell) if f = nil or not f.Exists then MsgBox "Folder " + FolderPath + " does not exist, or is not accessible." return nil end
But, I’ve searched the docs high and low, and can’t find this documented one way or another. Is short-circuit evaluation guaranteed behavior on all platforms?