<?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: a syntax question in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30951#M35701</link>
    <description>&lt;BLOCKQUOTE&gt;You wrote: "But thats all not more readable than (0&amp;lt;lmtr) AND (lmtr&amp;lt;180)"&lt;BR /&gt;
Why are the parentheses necessary ?
&lt;/BLOCKQUOTE&gt;
They aren', but I like to see the terms visual separated and sometimes I add some clearing parentheses. You are right, &lt;B&gt;0&amp;lt;lmtr AND lmtr&amp;lt;180&lt;/B&gt; comes to same result. It seems the order is:&lt;BR /&gt;
&lt;BR /&gt;
^&lt;BR /&gt;
*/&lt;BR /&gt;
+-&lt;BR /&gt;
&amp;lt;&amp;gt;=&lt;BR /&gt;
AND OR&lt;BR /&gt;
&lt;BR /&gt;
NOT(), because it's a function, does not need to be set in this order.</description>
    <pubDate>Mon, 15 Aug 2005 22:29:15 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2005-08-15T22:29:15Z</dc:date>
    <item>
      <title>a syntax question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30948#M35698</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
Where "lmtr" is an angle type parameter,&lt;BR /&gt;
is the expression "if 0&amp;lt;lmtr&amp;lt;180 then ...do something"&lt;BR /&gt;
a valid substitute for and has the same meaning as the expression&lt;BR /&gt;
"if lmtr &amp;gt;0 AND lmtr&amp;lt;180 then...do something" ?&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2005 02:33:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30948#M35698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-15T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: a syntax question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30949#M35699</link>
      <description>I don't think so, because the operators =,&amp;lt;,&amp;gt; are boolean operators and are not a defining statement as RANGE in VALUES.&lt;BR /&gt;
&lt;BR /&gt;
AC will first calculate &lt;B&gt;0&amp;lt;lmtr&lt;/B&gt; with the result 0 or 1 and then &lt;B&gt;result&amp;lt;180&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
0&amp;lt;lmtr&amp;lt;180 = ( (0&amp;lt;lmtr) &amp;lt;180)&lt;BR /&gt;
&lt;BR /&gt;
lmtr=-10  -&amp;gt; (0&amp;lt;lmtr) =0 -&amp;gt; 0&amp;lt;180=1  -&amp;gt; result true&lt;BR /&gt;
lmtr=45 -&amp;gt; (0&amp;lt;lmtr) =1 -&amp;gt; 1&amp;lt;180=1  -&amp;gt; result true&lt;BR /&gt;
lmtr=210 -&amp;gt; (0&amp;lt;lmtr) =0 -&amp;gt; 0&amp;lt;180=1  -&amp;gt; result true&lt;BR /&gt;
&lt;BR /&gt;
But &lt;B&gt;(0&amp;lt;lmtr) * (lmtr&amp;lt;180)&lt;/B&gt; should work:&lt;BR /&gt;
&lt;BR /&gt;
lmtr=-10  -&amp;gt; 0*1=0  -&amp;gt; result false&lt;BR /&gt;
lmtr=45 -&amp;gt; 1*1=1  -&amp;gt; result true&lt;BR /&gt;
lmtr=210 -&amp;gt; 1*0=0  -&amp;gt; result false&lt;BR /&gt;
&lt;BR /&gt;
or &lt;B&gt;ABS(lmtr-90)&amp;lt;90&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
But thats all not more readable than &lt;B&gt;(0&amp;lt;lmtr) AND (lmtr&amp;lt;180)&lt;/B&gt;</description>
      <pubDate>Mon, 15 Aug 2005 06:33:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30949#M35699</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-15T06:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: a syntax question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30950#M35700</link>
      <description>Frank,&lt;BR /&gt;
Thank you very much for your reply.&lt;BR /&gt;
Very concisely put and answers my question.&lt;BR /&gt;
Your final statement makes me curious about something.&lt;BR /&gt;
You wrote: "But thats all not more readable than (0&amp;lt;lmtr) AND (lmtr&amp;lt;180)"&lt;BR /&gt;
Why are the parentheses necessary ?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 15 Aug 2005 19:31:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30950#M35700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-15T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: a syntax question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30951#M35701</link>
      <description>&lt;BLOCKQUOTE&gt;You wrote: "But thats all not more readable than (0&amp;lt;lmtr) AND (lmtr&amp;lt;180)"&lt;BR /&gt;
Why are the parentheses necessary ?
&lt;/BLOCKQUOTE&gt;
They aren', but I like to see the terms visual separated and sometimes I add some clearing parentheses. You are right, &lt;B&gt;0&amp;lt;lmtr AND lmtr&amp;lt;180&lt;/B&gt; comes to same result. It seems the order is:&lt;BR /&gt;
&lt;BR /&gt;
^&lt;BR /&gt;
*/&lt;BR /&gt;
+-&lt;BR /&gt;
&amp;lt;&amp;gt;=&lt;BR /&gt;
AND OR&lt;BR /&gt;
&lt;BR /&gt;
NOT(), because it's a function, does not need to be set in this order.</description>
      <pubDate>Mon, 15 Aug 2005 22:29:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30951#M35701</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-15T22:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: a syntax question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30952#M35702</link>
      <description>Thanks for the explanation  Frank.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 15 Aug 2005 23:53:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/a-syntax-question/m-p/30952#M35702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-15T23:53:28Z</dc:date>
    </item>
  </channel>
</rss>

