Conditional control Statements:if Condition control statement:Format:An If expression: Statement 1 (the statement must be preceded by a tab, otherwise no statement is considered)Logic: Expression is set, then statement 1 is executed, otherwise
If statementIn an if statement, the block of code is judged by the number of spaces that are indented, which means that contiguous rows with a consistent number of spaces are treated as a block of code, which is executed when the condition of the if
1.if statements(1) If statement of two-way branch(2) If statement of the multi-path conditional Judgment Branch2. Test statements(1) file test(2) String test(3) Numerical test(4) Test statements combined with logical operators3.case statements4.for
1. Branch statements(1) Conditional statement ifIfElseIf Else(2) Multi-branch statement switchA switch statement can use integers, floating-point numbers, characters, strings, and tuples, and its values can be discrete or continuous.The case branch
Select statements, also called conditional branching statements: If......else and Switch......case, where the else in If......else is optional, but the case in switch......case is required.The condition after switch must be a byte, short, int, or
The sixth chapter is familiar with the Java Process Control statementJava Program flow control is divided into sequential structure , selection structure , loop structure and jump statements .
Sequential structure: execute from top to
1. Operators1.1, arithmetic operator + ( addition has three usages: addition, plus, String connector )-*/% + +--1.1.1,/is the pickup,% is the surplusUsage of 1.1.2, + + and--(A: function is self-increment, self-subtraction)B: used alone: in front
1.if StatementsSyntax: if (condition) {Execution when conditions are in existence }else{Conditions do not set up the implementation}Casesvar ji =; if (ji>=20) { Console.log (' congratulate you, eat chicken success, good fortune '
I. GrammarEverything in 1.javascirpt (variables, function names, and operators) is strictly case-sensitive.2.javascript (identifier)An identifier is a variable, a function, the name of a property, or an argument to a function.Naming rules: The first
1, make a judgment (if statement)An IF statement is a statement that is used when the appropriate code is executed based on a condition.Grammar:
if (condition) {The
code executes when the condition is set
}
Example: Suppose you
Control | loops | The statement is well known, flash animation depends on the timeline, in the absence of script, the animation will be in accordance with the timeline from the first frame non-stop play to the last frame, and then play again or
SetServerout on;---This can only be used in SQL Plus, meaning that the server output information is displayed in the window. DeclareN Number:=1;---Define a variable (of course you can define multiple variables consecutively)Vvarchar2( -):='Baize'; N2
User information in MySQL is stored in the users table of the system database MySQLTo create a user:Create user ' username ' @ ' allows its login address ' identified by ' password ';Note: Users created will need to specify at which address the user
SELECT statement1. If...then statementsGrammar:If Thenplsql_sentenceend if;Condition_expression: Represents a conditional expression whose value is true when the program executes the PL/SQL statement below if;If the value is False, the program
1. SELECT statement1.1 IF ... Then ... END If statementDECLARE my_age int;if my_age is null and dbms_output.put_line (' Age is null '); END IF; 1.2 IF ... Then Elsif then .... ELSE then ... endif statement, it should be noted here is elsif
Process Control StatementsIn the shell if multiple commands are entered in the terminal, the commands are placed in the background if they are separated by &, and a collection of commands is represented if delimited. Shell allows logical operators
Declare mycursor Cursor FORSelect * FROM table1Open MyCursorFetch next from MyCursor to @ variableWhile @ @FETCH_STATUS =0Begin--processing a single recordFetch Next from MyCursorEndClose MyCursorDeallocate mycursor Third, Process Control
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.