Program termination: Difference between revisions

Content added Content deleted
(Program termination en Yabasic)
Line 1,750: Line 1,750:
<lang XPL0>if Problem then exit 1;
<lang XPL0>if Problem then exit 1;
</lang>
</lang>


=={{header|Yabasic}}==
<code>end</code> may not end your program immediately; if you have opened a window or called 'clear screen', yabasic assumes, that your user wants to study the output of your program after it has ended;
therefore it issues the line '---Program done, press RETURN---' and waits for a key to be pressed. If you do not like this behaviour, consider using <code>exit</code>.

<code>exit</code> is similar to <code>end</code>, but it will terminate your program immediately, no matter what.



=={{header|Z80 Assembly}}==
=={{header|Z80 Assembly}}==