<?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: PARENTHESES in GDL in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27322#M36588</link>
    <description>I am not entirely sure what it is that you are trying to say, but square parentheses [] are reserved for arrays.</description>
    <pubDate>Mon, 08 Aug 2005 00:34:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-08-08T00:34:50Z</dc:date>
    <item>
      <title>PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27321#M36587</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;In GS scripts for windows I have find following line:&lt;BR /&gt;
!------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
dim stOpeningDir[]&lt;BR /&gt;
stOpeningDir[1] = `Inside`&lt;BR /&gt;
stOpeningDir[2] = `Outside`&lt;BR /&gt;
&lt;BR /&gt;
values "gs_opening_dir" stOpeningDir&lt;BR /&gt;
&lt;BR /&gt;
bOpeningDirection = (gs_opening_dir = stOpeningDir[2]) !GS writes so&lt;BR /&gt;
&lt;BR /&gt;
end&lt;BR /&gt;
!-------------------------------------------------------------------------------------&lt;BR /&gt;
! Above script can be written also so:&lt;BR /&gt;
!-------------------------------------------------------------------------------------&lt;BR /&gt;
dim stOpeningDir[]&lt;BR /&gt;
stOpeningDir[1] = `Inside`&lt;BR /&gt;
stOpeningDir[2] = `Outside`&lt;BR /&gt;
&lt;BR /&gt;
values "gs_opening_dir" stOpeningDir&lt;BR /&gt;
&lt;BR /&gt;
IF gs_opening_dir = "Outside" THEN bOpeningDirection=1 ELSE bOpeningDirection=0 		!Written by me and is same that GS has wrote&lt;BR /&gt;
&lt;BR /&gt;
END&lt;BR /&gt;
!--------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
So that's all means that PARENTHESES have another additional function like "Special" IF Statment for Integer values.&lt;BR /&gt;
I'm I right, or not?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:48:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27321#M36587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27322#M36588</link>
      <description>I am not entirely sure what it is that you are trying to say, but square parentheses [] are reserved for arrays.</description>
      <pubDate>Mon, 08 Aug 2005 00:34:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27322#M36588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-08T00:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27323#M36589</link>
      <description>I am not entirely sure what it is that you are trying to say, but square parentheses [] are reserved for arrays.</description>
      <pubDate>Mon, 08 Aug 2005 00:35:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27323#M36589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-08T00:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27324#M36590</link>
      <description>The expression&lt;PRE&gt;(gs_opening_dir = stOpeningDir[2])&lt;/PRE&gt;is boolean calculation. It's a comparation with boolean results: =1 true, =0: false.&lt;BR /&gt;
Using this you can reduce some complex IF-THEN - constructions.&lt;BR /&gt;
&lt;BR /&gt;
E.g.:&lt;BR /&gt;

&lt;PRE&gt;! opening: "single","double"
! display_opening: "no","first","all"

selection = (opening="double")*3 + NOT(display_opening="no") + (display_opening="all")

GOTO 200 + selection
&lt;/PRE&gt;

Result:&lt;BR /&gt;
&lt;BR /&gt;
selection=&lt;BR /&gt;
0: single opening, no opening lines&lt;BR /&gt;
1: single opening, show opening lines&lt;BR /&gt;
2: single opening, show opening lines&lt;BR /&gt;
3: double opening, no opening lines&lt;BR /&gt;
4: double opening, show first opening lines&lt;BR /&gt;
5: double opening, show all opening lines&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So YES, you are right.</description>
      <pubDate>Mon, 08 Aug 2005 07:41:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27324#M36590</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-08T07:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27325#M36591</link>
      <description>The boolean operations have a lower priority than addition or multiplication (below "PUNKT VOR STRICH", you should understand that &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; ). So you have to put paranthesis around it. The paranthesis itself (in this case) do not have another function than in a calculation like (3+4)*5 to get 35 instead of 23.</description>
      <pubDate>Mon, 08 Aug 2005 07:47:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27325#M36591</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-08T07:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: PARENTHESES in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27326#M36592</link>
      <description>Vielen dank F.Beister,&lt;BR /&gt;
&lt;BR /&gt;
perfekt erklärt!&lt;BR /&gt;
&lt;BR /&gt;
I will save your reply as tip in my PC, until "Next Generation" GDL Manuel. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Gruß</description>
      <pubDate>Mon, 08 Aug 2005 08:39:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARENTHESES-in-GDL/m-p/27326#M36592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-08T08:39:44Z</dc:date>
    </item>
  </channel>
</rss>

