- 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:

推薦閱讀
- Oracle從入門到精通(第3版)
- Mastering Entity Framework Core 2.0
- Reactive Programming with Swift
- BeagleBone Media Center
- Podman實(shí)戰(zhàn)
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實(shí)訓(xùn)版)
- Learning Apache Mahout Classification
- 深入淺出PostgreSQL
- C#實(shí)踐教程(第2版)
- Vue.js 2 Web Development Projects
- C語言程序設(shè)計(jì)簡(jiǎn)明教程:Qt實(shí)戰(zhàn)
- 區(qū)塊鏈國(guó)產(chǎn)化實(shí)踐指南:基于Fabric 2.0
- SignalR:Real-time Application Development(Second Edition)
- 深入淺出Python數(shù)據(jù)分析