We have inherited a legacy PB application and whilst going through the code recently I noticed the following (in PFC of all things):
if IsValid (gnv_app) then if IsValid(gnv_app.inv_debug) then if IsValid (gnv_app.inv_debug.inv_sqlspy) then <some code here> end if end if end if
But isn't this the same as:
if IsValid (gnv_app.inv_debug.inv_sqlspy) then <some code here> end if
My logic being that if inv_sqlspy is valid then gnv_app.inv_debug and gnv_app must also be valid. Or is there some coding subtlety I'm not getting here?
Apologies if this comes across as a dumb question.