| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
| cond | Data Type: (ECMAScript Expression) | Default: none - attribute is required |
| The cond attribute specifies an ECMAScript expression which can be evaluated to 'true' or 'false'. A condition must evaluate to 'true' in order for any enclosed operations to be performed. | ||
| <?xml version="1.0" encoding="UTF-8" ?> <ccxml version="1.0"> <var name="state0" expr="'init'"/> <eventhandler statevariable="state0"> <transition event="connection.CONNECTION_ALERTING" name="evt"> <log expr="'*** INCOMING CALLID IS: ' + evt.calledid + ' ***'"/> <accept/> </transition> <transition event="connection.CONNECTION_CONNECTED"> <log expr="'*** INCOMING CALL WAS ANSWERED ***.'"/> <if cond="evt.callerid == '4075551234'"> <log expr="'*** \'IF\' CONDITION IS TRUE ***'"/> <elseif cond="evt.callerid == '4075554321'"/> <log expr="'*** \'ELSEIF\' CONDITION IS TRUE ***'"/> <else/> <log expr="'*** \'ELSE\' STATEMENT REACHED ***'"/> <disconnect/> </if> </transition> <!-- ****************** GENERAL EXCEPTIONS ******************** --> <transition event="call.CALL_INVALID"> <exit/> </transition> <transition event="error.*" name="evt"> <log expr="'*** ERROR HAS OCCURED [' + evt.error + '] ***'"/> <exit/> </transition> </eventhandler> </ccxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |