View Single Post
  #30 (permalink)  
Old 04-30-09, 11:49 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by jaimenacach View Post
Thank you so much for the answer....
that's very helpful!

I knew I had seen it somewhere, but could not reference back to it. Thanks for the post.
The other reason to use Boolean logic or an if/else statement is so the variable gets initialized whether the array element exists or not.
In some instances if the variable is not initialized before it is used, then a caution! warning will be generated.

It's always good practice to initialize your variables either with a value or null.
__________________
Jerry Broughton
Reply With Quote