Difference between revisions of "Is-selected Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Andri
Line 4: Line 4:
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
<td align="left" valign="top" width="100%">The <strong>Is-selected</strong> condition checks if the agent executing it is selected in the world. If any of the instances of this agent is selected in the world, </td>
+
<td align="left" valign="top" width="100%">The <strong>Is-selected</strong> condition checks if the agent executing this condition is selected or not selected in the world, depending on whether the checkbox is checked or not. If the checkbox is checked and any of the instances of this agent is selected in the world, the condition is true. Otherwise, if any other agent (or nothing) is selected in the world, the condition is false.</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
<td align="left" valign="top" width="100%">[[Formula parameter|formula]]</td>
+
<td align="left" valign="top" width="100%">[[Checkbox parameter|checkbox]]</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>

Revision as of 18:52, 17 June 2011

150px

Definition: The Is-selected condition checks if the agent executing this condition is selected or not selected in the world, depending on whether the checkbox is checked or not. If the checkbox is checked and any of the instances of this agent is selected in the world, the condition is true. Otherwise, if any other agent (or nothing) is selected in the world, the condition is false.
Parameters: checkbox
Example: ???which example??? 500px