cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
943
Views
0
Helpful
0
Replies

Nuance Grammar

asegal
Beginner
Beginner

have a request for when my caller enters 7 numeric digits that the result or "out" contains the 7 digits plus the constant "LU" . Currently I can do it if the constant is a prefix , such as "LU1234567" but what I want is "1234567LU. Below is a grammar I use that does the prefix . What needs to change to do the LU at the end of the Output.

Current

<rule id='pol_seven' scope='public'>
<item>
<tag>out=&apos;LU&apos;</tag>
<ruleref uri='ddigits.grxml#digit7'/>
<tag>out+=rules.digit7</tag>
</item>
</rule>

 

Would this change put the LU and the end of the seven digits ?

<rule id='pol_seven' scope='public'>
<item>
<tag>out1=&apos;LU&apos;</tag>
<ruleref uri='ddigits.grxml#digit7'/>
<tag>out+=rules.digit7+out1</tag>
</item>
</rule>

Thanks

Allan

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: