<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://fenixdocs.com/skins/common/feed.css?63"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fenixdocs.com/index.php?action=history&amp;feed=atom&amp;title=Precompiler_if</id>
		<title>Precompiler if - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fenixdocs.com/index.php?action=history&amp;feed=atom&amp;title=Precompiler_if"/>
		<link rel="alternate" type="text/html" href="http://fenixdocs.com/index.php?title=Precompiler_if&amp;action=history"/>
		<updated>2026-05-01T12:58:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.10.1</generator>

	<entry>
		<id>http://fenixdocs.com/index.php?title=Precompiler_if&amp;diff=4123&amp;oldid=prev</id>
		<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 rel="alternate" type="text/html" href="http://fenixdocs.com/index.php?title=Precompiler_if&amp;diff=4123&amp;oldid=prev"/>
				<updated>2007-12-30T13:59:21Z</updated>
		
		<summary type="html">&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;</summary>
		<author><name>Sandman</name></author>	</entry>

	</feed>