- Lua Quick Start Guide
- Gabor Szauer
- 72字
- 2021-08-05 10:30:41
Control structures
Control structures are used to make decisions in code; they control the path of code based on a Boolean value. Lua provides the if statement for this purpose. An if statement is followed by a Boolean condition, which in turn is followed by a then/end chunk. The chunk is only executed when the Boolean condition evaluates to true.
The most basic syntax of an if statement is as follows:

推薦閱讀
- Rust實(shí)戰(zhàn)
- MongoDB for Java Developers
- Visual C++實(shí)例精通
- OpenCV 3和Qt5計(jì)算機(jī)視覺(jué)應(yīng)用開(kāi)發(fā)
- HTML5 Mobile Development Cookbook
- Bulma必知必會(huì)
- Java程序設(shè)計(jì)與實(shí)踐教程(第2版)
- MongoDB權(quán)威指南(第3版)
- VMware虛擬化技術(shù)
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)(第二版)
- C# and .NET Core Test Driven Development
- uni-app跨平臺(tái)開(kāi)發(fā)與應(yīng)用從入門(mén)到實(shí)踐
- Arduino可穿戴設(shè)備開(kāi)發(fā)
- HTML5+CSS3+jQuery Mobile APP與移動(dòng)網(wǎng)站設(shè)計(jì)從入門(mén)到精通
- SFML Game Development