How to Use the if... else statement in Lua
This article mainly introduces how to use the if... else statement in Lua. It is the basic knowledge of Lua beginners. For more information, see
The if statement can be followed by an optional else
This article mainly introduces the usage of the IF ... else statement in Lua, which is the basic knowledge in Lua's introductory learning, and can be consulted by a friend.
An If statement can be followed by an optional else statement, when the
An If statement can be followed by an optional else statement, when the Boolean expression is executed with a false statement.Grammar
The syntax for the IF ... else statement in the LUA programming language is:
Copy Code code as follows:
If-else statementcontrol Condition Branch.Grammar
NoteIf the value of the expression is Non-zero, the statement1 is executed. If the option else exists, Statement2 is executed if the
So far, the previous programs can only be executed step by step.
Statement: Judge and loop to form program branches and loops.
Select Control: If, else, switch, Case
Loop Control: white, do, for, foreach
Jump statement: Break, continue
One way to "make something happen" is to evaluate an expression with a side effect. Injected assignments and function calls these expressions with side-effects can be used as separate statements, and this expression is also called an expression
The pre-processing process scans the source code and performs initial conversion to generate new source code for the compiler. It can be seen that the preprocessing process processes the source code prior to the compiler.
In C language, there is
The preprocessing process scans the source code, makes a preliminary conversion, and generates a new source for the compiler. The preprocessing process can be seen before the source code is processed by the compiler.In the C language, there is no
Dynamic SQL statement: definition (i)
static SQL vs. dynamic SQL
Static SQL: SQL that has a fixed form and structure before the program runs.
Dynamic SQL: SQL that can dynamically change form or structure
If statementThe If statement consists of a Boolean expression followed by one or more statements.
GrammarThe syntax for the IF statement in the Go programming language is:
Copy Code code as follows:
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:
and provide relevant evidence. A staff member will contact you within 5 working days.