Boolean Built-in Grammar

Boolean Built-In Grammar

Boolean built-in grammar inputs include affirmative and negative phrases appropriate to the current language. DTMF 1 is affirmative and DTMF 2 is negative. The result is ECMAScript true for affirmative or false for negative. The value will be submitted as the string "true" or the string "false". If the field value is subsequently used in a <say-as> tag with the interpret-as attribute set to "vxml:boolean", it will be spoken as an affirmative or negative phrase appropriate to the current language.

One added parameter that can be specified for the boolean built-in grammar is the y parameter, using the grammar type boolean?y=d. This would implement a grammar that treats the DTMF keypress d as an affirmative answer. This parameter is applicable only to the DTMF grammar.

Similarly you can also specify the n parameter for the boolean built-in grammar, using the grammar type boolean?n=d. This would implement a grammar that treats the DTMF keypress d as a negative answer. This parameter is applicable only to the DTMF grammar.

Related links

Related terms

for "Boolean Built-in Grammar"

Search Glossary

Term of the Day

Providing a managed service to many clients from a centralized infrastructure. Plum offers world-class IVR hosting service to businesses of all sizes.