CallXML 2.0 Development Guide Home  |  Frameset Home

This documentation is for CallXML 2, which has been superceded by CallXML 3. The CallXML 2 language is not being updated any longer. CallXML 3, however, has many new features and is actively being enhanced. If you're writing a new CallXML application, you should use CallXML 3. Click here for the CallXML 3.0 documentation.

<clear>  element


Clears variable specified by the attribute var. As show below, will clear a variable named "MyVar". Effectively this works the same as <assign var="MyVar" value="" />


usage

<clear var="(variable name)">


attributes

var Data Type: (variable name) Default: none - attribute is required
The var attribute defines the name of the variable to set to an undefined state.



possible events

onerror type="document" Document was unable to be fetched for all the reasons web servers are unavailable



code samples

<Clear var>
<?xml version="1.0" encoding="UTF-8"?>

<callxml version="2.0">
  <block label="B1">
    <assign var="MyVar" value="Buttafuocco"/>
    <text>
      Our starting variable value is $MyVar;
    </text>

    <clear var="MyVar"/>
  </block>

  <block label="B2">
    <text>
      But now, since we have cleared it, the value is $MyVar;   
    </text>
  </block>
</callxml>




additional links

none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2011 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site