<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://fenixdocs.com/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Precompiler if - Revision history</title>
		<link>http://fenixdocs.com/index.php?title=Precompiler_if&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.1</generator>
		<lastBuildDate>Fri, 01 May 2026 11:58:02 GMT</lastBuildDate>
		<item>
			<title>Sandman: New page: category:precompiler  == Definition == '''#if''' &lt;what to check&gt; :&lt;if block&gt; ['''#else :&lt;else block&gt;] '''#endif'''  Checks if ''what to check'' is true. If it is, the code in ''if bloc...</title>
			<link>http://fenixdocs.com/index.php?title=Precompiler_if&amp;diff=4123&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: &lt;a href=&quot;/index.php/Category:Precompiler&quot; title=&quot;Category:Precompiler&quot;&gt;category:precompiler&lt;/a&gt;  == Definition == '''#if''' &amp;lt;what to check&amp;gt; :&amp;lt;if block&amp;gt; ['''#else :&amp;lt;else block&amp;gt;] '''#endif'''  Checks if ''what to check'' is true. If it is, the code in ''if bloc...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:precompiler]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''#if''' &amp;lt;what to check&amp;gt;&lt;br /&gt;
:&amp;lt;if block&amp;gt;&lt;br /&gt;
['''#else&lt;br /&gt;
:&amp;lt;else block&amp;gt;]&lt;br /&gt;
'''#endif'''&lt;br /&gt;
&lt;br /&gt;
Checks if ''what to check'' is true. If it is, the code in ''if block'' will be compiled. If it isn't, the code in ''else block'' will be compiled or when there is no ''else block'', the compiler will continue after [[precompiler_endif|#endif]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Consider a define to set the framepercentage in a certain process. Now for some reason you might want to just have a frame; compiled when that define is set to ''100''.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Loop&lt;br /&gt;
    #ifdef FRAMEPERC&lt;br /&gt;
        #if FRAMEPERC == 100&lt;br /&gt;
            frame;&lt;br /&gt;
        #else&lt;br /&gt;
            frame(FRAMEPERC);&lt;br /&gt;
        #endif&lt;br /&gt;
    #else&lt;br /&gt;
        frame;&lt;br /&gt;
    #endif&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Loop]], [[End]], [[frame]], [[precompiler_if|#if]], [[precompiler_else|#else]], [[precompiler_endif|#endif]]&lt;br /&gt;
&lt;br /&gt;
{{Precompiler_statements}}&lt;/div&gt;</description>
			<pubDate>Sun, 30 Dec 2007 13:59:21 GMT</pubDate>			<dc:creator>Sandman</dc:creator>			<comments>http://fenixdocs.com/index.php/Talk:Precompiler_if</comments>		</item>
	</channel>
</rss>