Home  >  V-Agent  >  DML

If

The if is used to perform actions conditionally.

Attributes:

Name Value
cond The condition that must be evaluated. The nested DML is executed only if the condition is true.


Example:
<task>
   <say>Hello</say>
   <store key="status">active</store>
   <if cond="${status} == 'active'">
      <say>Ok, the if condition was satisfied</say>
      <run>task:main</run>               
   </if>
</task>

© 2024 Complexity Intelligence, LLC