First, Process Control OverviewProcess Control of the program-Program = data + algorithm-Any complex program algorithm can be implemented by "order", "branch", "Loop" three basic program logic combinations650) this.width=650; "src="
In php, if else or switch statements are used most frequently, next, I will give you a detailed introduction to my notes on using the if else Conditional Control statement in php. if you need it, please refer to it.
In php, the basic process control
The main difference between process-oriented design and object-oriented design is whether to use lengthy if else judgment at the business logic layer. If you are still using the if else in large quantities, except for the interface presentation
The main difference between process-oriented design and object-oriented design is whether to use lengthy if else judgment at the business logic layer. If you are still using the if else in large quantities, except for the interface presentation
Banqiao people http://www.jdon.com 2006/1/11
The main difference between process-oriented design and object-oriented design is whether to use lengthy if else judgment at the business logic layer. If you are still using the if else in large
The main difference between process-oriented design and object-oriented design is whether to use lengthy if else judgment at the business logic layer. If you are still using the if else in large quantities, except for the interface presentation
The code we see earlier is executed sequentially, that is, the first statement is executed first, then the second, the third ... Until the last statement.
However, in many cases, sequential structure of the code is far from enough, such as a
If condition statement.Basic structure of an IF conditional statementIF ThenPL/SQL and statementsEND IF;or IF ThenPL/SQL and statementselse other statementsEND IF;DeclareCou Number: = &number;BeginIf Cou >10 ThenDbms_output.put_line (' cou= ' | |
Control Structure (I), control structure (
The role of the control structure is to control the execution sequence of statements in a program. It is the key to the structured program design. The basic principle of structured program design is
If ... Then ... Else statementConditionally executes a set of statements based on the value of an expression.
If condition Then statements [Else elsestatements]
Or, use block-form syntax:
If condition Then[Statements][ElseIf condition-n
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.