https://wiki.beyondunreal.com/w/index.php?action=history&feed=atom Return statement - Revision history 2017-11-18T02:16:10Z Revision history for this page on the wiki MediaWiki 1.25.1 https://wiki.beyondunreal.com/Return_statement?diff=44326&oldid=prev Wormbo: formatting fix 2011-03-05T10:13:07Z <p>formatting fix</p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:13, 5 March 2011</td> </tr><tr><td colspan="2" class="diff-lineno" id="L1" >Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The '''return''' statement immediately exits the current [[function]] or [[operator]]. No statement logically following a '''return''' will be executed anymore.</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The '''return''' statement immediately exits the current [[function]] or [[operator]]. No statement logically following a '''return''' will be executed anymore.</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>In [[state]] code, the '''return''' statement is not allowed. You can use the [[stop statement]] or call &lt;code&gt;GotoState('');&lt;/code&gt; instead, depending on the desired effect.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>In [[state]] code, the '''return''' statement is not allowed. You can use the [[stop statement]] or call &lt;code&gt;GotoState('<ins class="diffchange diffchange-inline">&lt;i&gt;&lt;/i&gt;</ins>');&lt;/code&gt; instead, depending on the desired effect.</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Syntax==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Syntax==</div></td></tr> </table> Wormbo https://wiki.beyondunreal.com/Return_statement?diff=33186&oldid=prev Wormbo: New page: The '''return''' statement immediately exits the current function or operator. No statement logically following a '''return''' will be executed anymore. In state code, the '''... 2008-10-31T10:55:10Z <p>New page: The &#039;&#039;&#039;return&#039;&#039;&#039; statement immediately exits the current <a href="/Function" class="mw-redirect" title="Function">function</a> or <a href="/Operator" class="mw-redirect" title="Operator">operator</a>. No statement logically following a &#039;&#039;&#039;return&#039;&#039;&#039; will be executed anymore. In <a href="/State" class="mw-redirect" title="State">state</a> code, the &#039;&#039;&#039;...</p> <p><b>New page</b></p><div>The '''return''' statement immediately exits the current [[function]] or [[operator]]. No statement logically following a '''return''' will be executed anymore.<br /> <br /> In [[state]] code, the '''return''' statement is not allowed. You can use the [[stop statement]] or call &lt;code&gt;GotoState('');&lt;/code&gt; instead, depending on the desired effect.<br /> <br /> ==Syntax==<br /> For function without a return type, the syntax simply is:<br /> '''return;'''<br /> However, if the function declaration contains a return type, the following variation must be used instead:<br /> '''return''' ''expression''''';'''<br /> The expression's type must be compatible to the function's return type.<br /> <br /> <br /> {{navbox unrealscript}}</div> Wormbo