Difference between revisions of "Test Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Corrina
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[image:Test condition.png|150px]]
+
[[Image:Test age action.png|150px|Test age action.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
[[Image:Test expanded.png|150px|Test expanded.png]]  
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="100%">The <strong>Test</strong> 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.</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Formula parameter|formula]]</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%">
 
[[Image:Test condition example.png|500px]]</td>
 
</tr>
 
  
</table>
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 +
|-
 +
| align="left" valign="top" width="80" | '''Definition:'''
 +
| 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.
 +
|-
 +
| align="left" valign="top" width="80" | '''Parameters:'''
 +
| align="left" valign="top" width="100%" |
 +
[[VAT Formula parameter|formula1]]: Attribute name, Number or VAT formula
 +
 
 +
[[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: