官术网_书友最值得收藏!

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:

主站蜘蛛池模板: 嵊泗县| 桃源县| 顺义区| 昌都县| 新和县| 五华县| 新源县| 文安县| 股票| 乐亭县| 新源县| 南溪县| 水城县| 皋兰县| 华坪县| 大新县| 达孜县| 阳新县| 抚州市| 汕尾市| 德令哈市| 四川省| 杭州市| 隆子县| 安康市| 景谷| 铁岭县| 象州县| 新余市| 汽车| 舒兰市| 嘉定区| 进贤县| 洛阳市| 柏乡县| 夏津县| 奈曼旗| 重庆市| 枣庄市| 紫阳县| 龙陵县|