<pre><code>%{?  { macro_name } : true  : false }
%{?  { macro_name } : true             }
%{?! { macro_name } : false : true  }
%{?! { macro_name } : false           }
</code></pre>
<p>More detailed description of the notation:</p>
<ul>
<li>Between the first chars "%{?" resp. "%{!?" or "%{?!  there can not be a space.</li>
<li>On the other hand around {condition} and :, there can but not need to be a space.</li>
<li>In {condition}, there can be a space before or after macro_name.</li>
</ul>
<p>So e.g. the following conditions are similar (from rpm point of view):<br>
%{?{macro}:true:false}<br>
%{? { macro } : true : false }</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/746'>https://github.com/rpm-software-management/rpm/pull/746</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Make chkexist variable in macro.c more general</li>
  <li>Create a separate variable for storing parts of a macro</li>
  <li>Support triple operator for conditional shortcut</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/746/files#diff-0">rpmio/macro.c</a>
    (187)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/746/files#diff-1">tests/rpmmacro.at</a>
    (30)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/746.patch'>https://github.com/rpm-software-management/rpm/pull/746.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/746.diff'>https://github.com/rpm-software-management/rpm/pull/746.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/746?email_source=notifications&email_token=ADLPZU7JDIRRJGBIOB45BWLP2DCY3A5CNFSM4HXHLHE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZAUFQQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUZ7RDKFTV7J32IQITLP2DCY3ANCNFSM4HXHLHEQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZW22MZLKLJEHCAR2LP2DCY3A5CNFSM4HXHLHE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZAUFQQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/746?email_source=notifications\u0026email_token=ADLPZU7JDIRRJGBIOB45BWLP2DCY3A5CNFSM4HXHLHE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZAUFQQ",
"url": "https://github.com/rpm-software-management/rpm/pull/746?email_source=notifications\u0026email_token=ADLPZU7JDIRRJGBIOB45BWLP2DCY3A5CNFSM4HXHLHE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZAUFQQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>