mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
25 lines
811 B
HTML
25 lines
811 B
HTML
<!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:surfsmurf@matilde.demon.co.uk">Carsten Sorensen</a></p>
|
|
</body>
|
|
</html>
|