<block>
<block>
This element is a form item. It contains executable content that is executed if the block's form item variable is undefined and the block's cond attribute, if any, evaluates to true.
Attributes
Name | Data type | Description |
---|---|---|
name | String | The name of the form item variable used to track whether this block is eligible to be executed; defaults to an inaccessible internal variable. |
cond | String | An expression that must evaluate to true after conversion to Boolean in order for the form item to be visited. |
expr | String | The initial value of the form item variable; default is ECMAScript undefined. If initialized to a value, then the block will not be visited unless the form item variable is cleared. |
Notes
None
Example
The output of the above script would be:
Computer: Setting block condition variables. Computer: This prompt will play.
Child Tags
<audio>, <assign>, <clear>, <data>, <disconnect>, <enumerate>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>
Parent Tags
Last updated