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
"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
If, elseif, and else statements are used to execute different actions based on different conditions.Condition StatementWhen writing code, you often need to perform different actions for different judgments.You can use conditional statements in the
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:
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
Sometimes I learn a lot, a lot of small details are forgotten, such as simple expression,Three-dimensional expression?:;$aa an OR $BB expressionWait a minute!Write some simple expressions, Memo!php && | | Abbreviation CONDITION statementLook at the
In the thread synchronization process, there are also the following situations: Thread A needs to wait for A condition to be established before it can continue to run. if the condition is not true, thread A will be blocked, when thread B sets this
Problem
What is PHP file? which software can be used to open
Workaround
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and
MySQL and and or introductionAnd and or can combine two or more conditions in a where sub-statement.When using the OR keyword:
As long as one of these criteria is met, such a record is queried.
If any of these query conditions are not
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.