comparison website/src/diff.html @ 1645:0af6a9d6d12f

minor - keywords
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Mar 2022 22:41:07 -0700
parents d3e61cd2aca0
children
comparison
equal deleted inserted replaced
1644:5c676385284b 1645:0af6a9d6d12f
136 136
137 <h4 heading><a name="control" href="#control">Control Structures</a></h4> 137 <h4 heading><a name="control" href="#control">Control Structures</a></h4>
138 138
139 <p>The Luan <b>if</b>, <b>while</b>, and <b>repeat</b> statement are the same as in Lua except that the condition expression must return a boolean value. Any other value type will produce an error. This helps catch errors and makes code more readable.</p> 139 <p>The Luan <b>if</b>, <b>while</b>, and <b>repeat</b> statement are the same as in Lua except that the condition expression must return a boolean value. Any other value type will produce an error. This helps catch errors and makes code more readable.</p>
140 140
141 <p>Luan adds the <b>continue</b> statement which is used inside loops.</p>
142
141 <p>Luan does not have a <b>goto</b> statement.</p> 143 <p>Luan does not have a <b>goto</b> statement.</p>
142 144
143 <h4 heading><a name="for" href="#for">For Statement</a></h4> 145 <h4 heading><a name="for" href="#for">For Statement</a></h4>
144 146
145 <p>Luan has no numeric <b>for</b> statement. Luan only has generic <b>for</b> statement. Instead of the numeric <b>for</b> statement, Luan uses the <code>range</code> function in a generic <b>for</b> statement like this:</p> 147 <p>Luan has no numeric <b>for</b> statement. Luan only has generic <b>for</b> statement. Instead of the numeric <b>for</b> statement, Luan uses the <code>range</code> function in a generic <b>for</b> statement like this:</p>