<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=CompileErrors%2FC2002</id>
	<title>CompileErrors/C2002 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=CompileErrors%2FC2002"/>
	<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CompileErrors/C2002&amp;action=history"/>
	<updated>2026-12-05T23:16:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=CompileErrors/C2002&amp;diff=6134&amp;oldid=prev</id>
		<title>Dannym: Created page with &quot;{{CompileError |errortext = C2002 - Multiple ELSE statements in IF block. |description = C2002 is issued when multiple ELSE statements are found at the same tab level of an op...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CompileErrors/C2002&amp;diff=6134&amp;oldid=prev"/>
		<updated>2015-09-25T18:06:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CompileError |errortext = C2002 - Multiple ELSE statements in IF block. |description = C2002 is issued when multiple ELSE statements are found at the same tab level of an op...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CompileError&lt;br /&gt;
|errortext = C2002 - Multiple ELSE statements in IF block.&lt;br /&gt;
|description = C2002 is issued when multiple ELSE statements are found at the same tab level of an open IF block.&lt;br /&gt;
&lt;br /&gt;
If unaddressed in the prog, GibbsCAM will execute the code from the first ELSE block, skipping the code from the other ELSE blocks entirely.&lt;br /&gt;
|exampletext = An IF block followed by multiple ELSE statements.&lt;br /&gt;
|examplecode = &amp;lt;/code&amp;gt;&lt;br /&gt;
 IF FirstOperation?&lt;br /&gt;
    IF (ToolGroup# == 1)&lt;br /&gt;
        ...&lt;br /&gt;
    ELSE&lt;br /&gt;
        { prog code in here gets executed if the IF statement is false }&lt;br /&gt;
    ELSE  { Offending ELSE statement }&lt;br /&gt;
        { prog code in here never gets executed }&lt;br /&gt;
    END&lt;br /&gt;
 END&amp;lt;code&amp;gt;&lt;br /&gt;
|resolutiontext = The resolution can vary. &lt;br /&gt;
&lt;br /&gt;
If the error is encountered while compiling a legacy PST file, then preserving legacy behavior is most likely the best course of action. In this case, the body of the first ELSE block is what GibbsCAM uses at runtime and should be the code that is preserved in the prog.&lt;br /&gt;
&lt;br /&gt;
Otherwise the resolution should be to correct the post such that the post developer&amp;#039;s intended behavior persists.&lt;br /&gt;
|resolutioncode =&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Dannym</name></author>
	</entry>
</feed>