Quote:
Originally Posted by jaimenacach
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.