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

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:

主站蜘蛛池模板: 赣榆县| 乾安县| 泾川县| 武陟县| 邵东县| 芦溪县| 平阴县| 广宗县| 工布江达县| 福建省| 九台市| 疏附县| 浮梁县| 赞皇县| 西青区| 惠东县| 淮滨县| 孟州市| 永城市| 察隅县| 乐清市| 绥阳县| 潼关县| 郧西县| 贵南县| 永新县| 宁津县| 香港| 盐源县| 桂平市| 双辽市| 武平县| 民勤县| 临湘市| 龙州县| 务川| 当雄县| 宁津县| 赤壁市| 九江县| 泸溪县|