<?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 Finding out if a Parameter is Odd or Even? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Finding-out-if-a-Parameter-is-Odd-or-Even/m-p/173421#M22287</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I searched through the forum, but couldn't find an answer to this:&lt;BR /&gt;
&lt;BR /&gt;
How do I find out if a user input (integer) parameter is odd or even in GDL script?&lt;BR /&gt;
&lt;BR /&gt;
Basically I want to do something that says If num (user integer input) EVEN then GOSUB:A, IF num (user integer input) ODD then GOSUB:B.&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your help, I am at a loss here.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 Jan 2010 16:19:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-20T16:19:14Z</dc:date>
    <item>
      <title>Finding out if a Parameter is Odd or Even?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Finding-out-if-a-Parameter-is-Odd-or-Even/m-p/173421#M22287</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I searched through the forum, but couldn't find an answer to this:&lt;BR /&gt;
&lt;BR /&gt;
How do I find out if a user input (integer) parameter is odd or even in GDL script?&lt;BR /&gt;
&lt;BR /&gt;
Basically I want to do something that says If num (user integer input) EVEN then GOSUB:A, IF num (user integer input) ODD then GOSUB:B.&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your help, I am at a loss here.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:19:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Finding-out-if-a-Parameter-is-Odd-or-Even/m-p/173421#M22287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T16:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out if a Parameter is Odd or Even?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Finding-out-if-a-Parameter-is-Odd-or-Even/m-p/173422#M22288</link>
      <description>Another way of saying that an integer x is even is to say that x mod 2 = 0. So...&lt;BR /&gt;

&lt;PRE&gt;IF num MOD 2=0 THEN !num is even
    GOSUB A
ELSE
    GOSUB B
ENDIF&lt;/PRE&gt;

should do the trick.</description>
      <pubDate>Wed, 20 Jan 2010 17:08:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Finding-out-if-a-Parameter-is-Odd-or-Even/m-p/173422#M22288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T17:08:38Z</dc:date>
    </item>
  </channel>
</rss>

