Talk:FolderItem

From REALbasicWiki

Jump to: navigation, search

The discussion in 'Checking if a FolderItem is nil or doesn't exist' is not correct. The Boolean And and Or operators use short-circuit evaluation. So

if f is nil or not f.Exists

is perfectly safe; if (f is nil) evaluates to true, then Or will return true without evaluating the second expression.

charles

Hmmm this is really why we need this wiki !! Thanks for this information !!!! SteffX 18:10, 21 February 2008 (EST)
Personal tools
related