Difference between revisions of "Test Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Corrina
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:Text_age_action.png|150px]]
+
[[Image:Test age action.png|150px|Test age action.png]]  
  
[[image:Test expanded.png|150px]]
+
[[Image:Test expanded.png|150px|Test expanded.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| align="left" valign="top" width="80" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Test</strong> condition compares the values of two formulae.
+
| align="left" valign="top" width="100%" | 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.
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.</td>
+
|-
</tr>
+
| align="left" valign="top" width="80" | '''Parameters:'''
<tr>
+
| align="left" valign="top" width="100%" |
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
+
[[VAT Formula parameter|formula1]]: Attribute name, Number or VAT formula
<td align="left" valign="top" width="100%">[[Formula parameter|formula]]</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example 1:</b></td>
 
<td align="left" valign="top" width="100%">
 
[[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>
 
  
</table>
+
[[Comparator parameter|comparator]]:&nbsp; Comparator selector
 +
 
 +
[[VAT Formula parameter|formula2]]: Attribute name, Number or VAT formula
 +
 
 +
|-
 +
| align="left" valign="top" width="80" | '''Example:'''
 +
| align="left" valign="top" width="100%" |
 +
|}
  
 
[[Category:AgentCubes_Conditions]]
 
[[Category:AgentCubes_Conditions]]

Latest revision as of 01:02, 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:

formula1: Attribute name, Number or VAT formula

comparator:  Comparator selector

formula2: Attribute name, Number or VAT formula

Example: