Difference between revisions of "Test Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Corrina
Line 16: Line 16:
 
<td align="left" valign="top" width="80"><b>Example 1:</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>
+
</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>
 +
  
 
</table>
 
</table>
  
 
[[Category:AgentCubes_Conditions]]
 
[[Category:AgentCubes_Conditions]]

Revision as of 00:59, 21 April 2012

Test age action.png

Test expanded.png

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: