<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IF THEN Statements in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/578039#M5956</link>
    <description>&lt;P&gt;if condition has only &lt;STRONG&gt;one statement&lt;/STRONG&gt; and (as Barry mentioned) &lt;EM&gt;then&lt;/EM&gt; is on the same line, you don't need &lt;STRONG&gt;endif &lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 11:16:53 GMT</pubDate>
    <dc:creator>A_ Smith</dc:creator>
    <dc:date>2023-11-29T11:16:53Z</dc:date>
    <item>
      <title>IF THEN Statements</title>
      <link>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/577985#M5952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I write and IF THEN statement, the editor sometimes returns an error if I add an ENDIF on the next line. Most of the time it seems to run without error if I don't even add the ENDIF statement when creating a list of logic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;The editor seems to like ENDIF after a series of parameters e.g:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;IF list = 0 THEN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;item = 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;method = 2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;ENDIF&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Editor has no fault with no ENDIF after the following logic:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;IF list = 0 THEN item = 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;IF list = 1 THEN item = 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;IF list = 1 THEN item = 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Is there a clue as to when an ENDIF is required?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Many thanks, Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:43:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/577985#M5952</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-26T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF THEN Statements</title>
      <link>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/577990#M5953</link>
      <description>&lt;P&gt;When the IF, THEN, command is all on the same line, you do not need the ENDIF (I still put it there anyway).&lt;/P&gt;
&lt;P&gt;When the command is on a separate line, you must use ENDIF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 02:46:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/577990#M5953</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-11-29T02:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: IF THEN Statements</title>
      <link>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/578039#M5956</link>
      <description>&lt;P&gt;if condition has only &lt;STRONG&gt;one statement&lt;/STRONG&gt; and (as Barry mentioned) &lt;EM&gt;then&lt;/EM&gt; is on the same line, you don't need &lt;STRONG&gt;endif &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:16:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/578039#M5956</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2023-11-29T11:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF THEN Statements</title>
      <link>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/578065#M5959</link>
      <description>&lt;P&gt;That is helpful. It was one of those unknowns that is very pleasing to have a definitive answer to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both Barry and A_Smith for your responses!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 12:47:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/IF-THEN-Statements/m-p/578065#M5959</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2023-11-29T12:47:23Z</dc:date>
    </item>
  </channel>
</rss>

