<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../xsl/command.xsl"?>
<command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/command.xsd">
  <name>if</name>
  <description>Condition clause.</description>
  <syntax>&lt;expr1&gt; &lt;operator&gt; &lt;expr2&gt; &lt;cmd1&gt; [else &lt;cmd1&gt;]</syntax>
  <arguments>
    <argument>
      <name>expr1</name>
      <description>A string where you usually use your own text, macros, and values of variables (like $volume).</description>
    </argument>
    <argument>
      <name>operator</name>
      <description>==, =, !=, &lt;&gt;, &gt;, &lt;, &gt;=, &lt;=, isin, !isin. Where 'isin' means &quot;expr1 is a substring of expr2&quot; and '!isin' is a negation of this. The others are standard mathematical comparison.</description>
    </argument>
    <argument>
      <name>expr2</name>
      <description>See expr1</description>
    </argument>
    <argument>
      <name>cmd1</name>
      <description>Will get executed if the binary operation succeeds.</description>
    </argument>
    <argument>
      <name>cmd2</name>
      <description>Will get executed if the binary operation fails.</description>
    </argument>
  </arguments>
</command>
