I changed a folderitem's tests and am confused. I always understood this second test would fail if the folderitem was not Nil but also did NOT exist.
I have a property that is part of a module and it is a global property.
ThPrefsF is the folderitem for the preferences file.
At the moment I am confused because I declared a few hundred lines before
IniHerd.ThPrefsF = IniHerd.ThColl.Child("PrefsFile.ini")
and in this case it doesn't exist, but is only the location.
I have these lines of code that according to my understanding should work but fail when exists = false
If IniHerd.ThPrefsF <> Nil And IniHerd.ThPrefsF.Exists Then //will succeed if it fulfills both tests ElseIf IniHerd.ThPrefsF = Nil And IniHerd.ThPrefsF.Exists = False Then //Will fail if either is not true End If//If IniHerd.ThPrefsF <> Nil And IniHerd.ThPrefsF.Exists Then
Is my logic correct?