<?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 Question about Bitest and Bitest ?? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268528#M1895</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there,&lt;BR /&gt;
&lt;BR /&gt;
Can someone put a practical example for the use of BITEST &amp;amp; BITSET ?&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;*Cause I have always seen them being mentioned in GDL manual but never an example that explains how to use them.&lt;E&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 01 Nov 2019 11:10:58 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-11-01T11:10:58Z</dc:date>
    <item>
      <title>Question about Bitest and Bitest ??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268528#M1895</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there,&lt;BR /&gt;
&lt;BR /&gt;
Can someone put a practical example for the use of BITEST &amp;amp; BITSET ?&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;*Cause I have always seen them being mentioned in GDL manual but never an example that explains how to use them.&lt;E&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Nov 2019 11:10:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268528#M1895</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-01T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Bitest and Bitest ??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268529#M1896</link>
      <description>The masking and status values of some other GDL commands are based on set and unset bits of their binary notation. These functions can be analyzed in binary form.&lt;BR /&gt;
Example: You have a masking Value of 63, which is &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*1 + &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*2 + &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*4 + &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*8 + &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*16 + &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;1&lt;E&gt;&lt;/E&gt;*32&lt;BR /&gt;
With Bittest you can check, which of these Bits are set or you can check if one of the Bits is set.&lt;BR /&gt;
val = 63&lt;BR /&gt;
TEXT2 0, 0, BITTEST(val,  4)   		!  = 1&lt;BR /&gt;
This checks, if the 5th value is set (the value 16); the 1st value (1) is on position 0,&lt;BR /&gt;
so you have to check &lt;BR /&gt;
TEXT2 0, 0, BITTEST(val,  0)   		!  = 1&lt;BR /&gt;
The binary notation of 63 would be 111111 (this is identical with the italic written 1s above), of 64 would be 1000000</description>
      <pubDate>Fri, 01 Nov 2019 13:46:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268529#M1896</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2019-11-01T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Bitest and Bitest ??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268530#M1897</link>
      <description>Thank you Joachim Suehlo</description>
      <pubDate>Fri, 01 Nov 2019 14:17:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Question-about-Bitest-and-Bitest/m-p/268530#M1897</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-01T14:17:34Z</dc:date>
    </item>
  </channel>
</rss>

