Must a control structure’s test expression result in a Boolean value?
Ultimately, yes. However, in the context of a test expression, zero, an undefined variable, or an empty string is converted to false for the purposes of the test. All other values evaluate to true.
Leave a Reply
You must be logged in to post a comment.