4.2.2 The switch statement that expresses the side-by-side condition selection: If ... If...... If......In the real world, there is a special kind of conditional choice:If it is sunny tomorrow, I will wear a T-shirt;If it is cloudy tomorrow, I will
Hello, C ++ (20). 4.2.2 represents the switch statement selected by the parallel condition: if ...... If ...... If ......,. 4.2.24.2.2 expression of the switch statement selected by the parallel condition: if ...... If ...... If ......
In the real
4.2.2 The switch statement that expresses the side-by-side condition selection: If ... If...... If......In the real world, there is a special kind of conditional choice:If it is sunny tomorrow, I will wear a T-shirt;If it is cloudy tomorrow, I will
Hello, C ++ (19) "Teacher, have I passed this level 4 test ?" -- 4.2 condition selection statement, Level 4 exam 4.24.2 condition selection statement
"Teacher, have I passed this level 4 test ?"
How can the teacher answer this question? Yes, he will
7. conditional statements for makefile
A conditional statement can execute or ignore some scripts in the MAKEFILE file based on the value of the variable. A condition statement can compare a variable with the value of another variable or a variable
MySql multi-condition query statement with OR keyword, mysqlor keyword statement
In the previous article, we introduced the multi-condition query statements with And keywords in Mysql. Next we will introduce the multi-condition query statements
Any php Tutorial script consists of a series of statements. A statement can be a value assignment statement, a function call, a loop, or even a (null statement) condition statement that does nothing. The statement usually ends with a semicolon. In
I. Shell Condition Statement (if usage)
If statement structure [if/then/Elif/else/FI]
If condition test statement
Then
Action
[Elif Condition
Action
Else
Action
]
Fi
If you are not clear about the conditional test statement, refer to:
"Note 1": unlike Java, PHP and other languages, SH's process control can not be empty, such as:
The code is as follows:
You can't write this in Sh/bash, if the Else branch has no statement execution, don't write this else, like this:
If
This article mainly introduces how to use if Shell script to program if statements. for details, refer to the if statement format.
If condition
Then
Command
Else
Command
Fi, don't forget the end.
If statements forget the final fi
Test. sh: line 14:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.