The if Statement part 2
The if Statement
This is another example of a false conditional statement.
As the condition evaluates to false, the alert statement is skipped and the program continues with the line after the if statement's closing curly brace.
Note that if is in lowercase letters. Uppercase letters (If or IF) will generate an error.
What happens if the tested condition is false?
Comments
Post a Comment