![]() ![]() ![]() ![]() Use the “if/else if” if you need to choose either one or none of a series of options. continuation point after if/else if is complete If the end of the if/else if chain is reached without a true expression, no code blocks are executed. The if statements are evaluated in order until one of the if expressions is true or the end of the if/else if chain is reached. The if/else if statement allows you to create a chain of if statements. If you only need to execute a single statement for the else condition, you do not need to use curly brackets. If you want to execute multiple statements for the else condition, enclose the code in curly brackets. ![]() The else part of the if/else statement follows the same rules as the if part. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |