If
The if tag will execute the then tag if the condition is true and if the condition evaluates to false then the else sub tag will evaluate to true.
Children Tags
(isalertpresent | ischecked | isconfirmationpresent | iseditable | iselementpresent | isordered | ispromptpresent | issomethingselected | istextpresent | isvisiblefalse | true | not | and | eq | gt | lt | neq | or | within | similar | match | isset | rendezvous_check | rendezvous_exists | share_exists) . then . else
Usage Examples
Example #1
<if>
   
<eq op1="${test1}" op2="${test2}" />
   
<then>
      
<local>
         
<echo>${test1} equals ${test2}</echo>
      
</local>
   
</then>
   
<else>
      
<local>
         
<fail message="CRAP!" />
      
</local>
   
</else>
</if>
Example #2
<if>
   
<neq op1="${test1}" op2="${test2}" />
   
<then>
      
<local>
         
<echo>${test1} is not equals ${test2}</echo>
      
</local>
   
</then>
</if>