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

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

主站蜘蛛池模板: 新蔡县| 太和县| 霍州市| 张家界市| 堆龙德庆县| 永吉县| 乌兰察布市| 惠东县| 湖南省| 榆林市| 郁南县| 明光市| 永济市| 遵义市| 鹿邑县| 和平区| 禹州市| 秦安县| 固始县| 措勤县| 宜都市| 阿拉尔市| 金川县| 青冈县| 白朗县| 疏附县| 宽甸| 西林县| 称多县| 定襄县| 介休市| 临海市| 那曲县| 东港市| 贵州省| 城固县| 石阡县| 三河市| 山东省| 信阳市| 永城市|