shithub: rgbds

ref: 0b647c5a253a77360e32042a0d93bd842da6027d
dir: /doc/asm/if.htm/

View raw version
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>xAsm IF, ELSE, ENDC</title>
        <link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>IF, ELSE, ENDC</h1>
<p>These three commands is used to conditionally assemble parts of your file. It is a powerful feature commonly used in macros.</p>
<pre>IF   2+2==4
PRINTT    "2+2==4\n"
ELSE
PRINTT    "2+2!=4\n"
ENDC</pre>
<p>The ELSE block is optional. IF/ELSE/ENDC-blocks can be nested.</p>
<h1>See also:</h1>
<ul>
<li><a href="expr_int.htm">Integer and Boolean expressions</a>
</ul>
<hr>
<p>Last updated 21 June 1997 by <a href="mailto:[email protected]">Carsten Sorensen</a></p>
</body>
</html>