<?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: double brackets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799090#M314184</link>
    <description>&lt;P&gt;You should interpret this as a boolean expression, meaning that it will return either 0 (FALSE) or 1 (TRUE). Programmers tend to use brackets to indicate a boolean expression, though usually, they are not &lt;SPAN&gt;necessary&lt;/SPAN&gt;. In this case, the double brackets certainly are not &lt;SPAN&gt;necessary .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See the small example below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   a = (1 = 2);
   b = (2 = 2);
   
   put (a b)(=);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Feb 2022 07:46:54 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-02-28T07:46:54Z</dc:date>
    <item>
      <title>double brackets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799088#M314183</link>
      <description>&lt;P&gt;What does double brackets mean??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this in my sas program that I dont recognise:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sme=((Customer_type='C')):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how could the above be interpreted?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799088#M314183</guid>
      <dc:creator>christinawkhau</dc:creator>
      <dc:date>2022-02-28T07:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: double brackets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799090#M314184</link>
      <description>&lt;P&gt;You should interpret this as a boolean expression, meaning that it will return either 0 (FALSE) or 1 (TRUE). Programmers tend to use brackets to indicate a boolean expression, though usually, they are not &lt;SPAN&gt;necessary&lt;/SPAN&gt;. In this case, the double brackets certainly are not &lt;SPAN&gt;necessary .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See the small example below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   a = (1 = 2);
   b = (2 = 2);
   
   put (a b)(=);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799090#M314184</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-02-28T07:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: double brackets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799152#M314211</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/414042"&gt;@christinawkhau&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What does double brackets mean??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see this in my sas program that I dont recognise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sme=((Customer_type='C')):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how could the above be interpreted?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Often when I see code with duplicated () I suspect either code editing, where some other element was present in the code such as below an removed OR thinking that such an addition was considered but not implemented.&lt;/P&gt;
&lt;PRE&gt;sme=((Customer_type='C') and (othervar = something)):&lt;/PRE&gt;
&lt;P&gt;The intent would be to force a dichotomous 1/0 valued result for the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you haven't see that type of coding it is sometimes used in place of&lt;/P&gt;
&lt;PRE&gt;If Customer_type='C' then sme= 1;
else sme=0 ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-brackets/m-p/799152#M314211</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-28T15:54:00Z</dc:date>
    </item>
  </channel>
</rss>

