Difference between revisions of "Test Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Andri
Line 12: Line 12:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td align="left" valign="top" width="80"><b>Example:</b></td>
+
<td align="left" valign="top" width="80"><b>Example 1:</b></td>
 
<td align="left" valign="top" width="100%">
 
<td align="left" valign="top" width="100%">
 
[[Image:Test condition example.png|500px]]</td>
 
[[Image:Test condition example.png|500px]]</td>
 +
</tr>
 +
<tr>
 +
<td align="left" valign="top" width="80"><b>Example 2:</b></td>
 +
<td align="left" valign="top" width="100%">
 +
[[Image:Test condition example2.png|500px]]</td>
 
</tr>
 
</tr>
  

Revision as of 20:39, 17 June 2011

150px

Definition: The Test condition compares the values of two formulae. If the comparison yields true, then the condition is true. Otherwise, it is false. Test is typically used to compare agent attributes or simulation properties to numbers or formulae that may contain other attributes or properties.
Parameters: formula
Example 1: 500px
Example 2: 500px