<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fdotif</id>
		<title>IB Statements/dotif - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fdotif"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/dotif&amp;action=history"/>
		<updated>2026-05-04T18:27:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/dotif&amp;diff=478&amp;oldid=prev</id>
		<title>Badge: New page: '''.IF directive'''   '''Syntax:'''  .IF symbolic-constant    '''Discussion:'''  The .IF statement is a compiler directive. As such, it causes an action to occur when the program is compil...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/dotif&amp;diff=478&amp;oldid=prev"/>
				<updated>2009-05-22T13:47:56Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;.IF directive&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  .IF symbolic-constant    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The .IF statement is a compiler directive. As such, it causes an action to occur when the program is compil...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''.IF directive''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  .IF symbolic-constant  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The .IF statement is a compiler directive. As such, it causes an action to occur when the program is compiled, not when the program is executed. The .IF directive can appear anywhere in an Internet Basic source program. &lt;br /&gt;
Within an Internet Basic source program, specific lines can be identified as conditional source segments. A conditional source segment begins with the .IF directive (or one of its alternatives) and ends with the .ENDIF directive, as follows: &lt;br /&gt;
&lt;br /&gt;
 .IF symbolic-constant&lt;br /&gt;
                                !&lt;br /&gt;
 (conditional source segment)&lt;br /&gt;
                                !&lt;br /&gt;
 .ENDIF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Internet Basic compiler will compile the conditional source segment only if the symbolic constant has been SET to a non-zero value. &lt;br /&gt;
&lt;br /&gt;
See Conditional Compilation. &lt;br /&gt;
 &lt;br /&gt;
'''Example:'''  In the following example, the symbolic constant named ABC is set to a non-zero value. When the compiler reaches the .IF directive, it compiles the subsequent lines up through the .ENDIF directive. Note, however, that if ABC was either not defined (not SET) or contained a value of 0, the compiler would skip the conditional source segment. &lt;br /&gt;
&lt;br /&gt;
  SET ABC = 1       ! set the symbolic constant to a non-zero value&lt;br /&gt;
                    ! &lt;br /&gt;
  .IF ABC           ! beginning of conditional source segment&lt;br /&gt;
                    ! &lt;br /&gt;
   Internet Basic code segment&lt;br /&gt;
                    !&lt;br /&gt;
  .ENDIF            ! end of conditional source segment&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>