|
|
| <if> The <if> element is used for conditional logic. It has optional <else> and <elseif> elements. Attributes
Child Tags <audio>, <enumerate>, <assign>, <clear>, <data>, <disconnect>, <elseif>, <else>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var> Parent Tags <block>, <catch>, <error>, <help>, <if>, <filled>, <foreach>, <noinput>, <nomatch> Notes none Example
An interaction with the above script could be: Computer:
Say the magic number between
one and nine.
Human: Three. Computer: Try again. Say the magic number between one and nine. Human: Six. Computer: You're close. Try again. Say the magic number between one and nine. Human: Five. Computer: You guessed correctly! |