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

Adding the value "LU" to end of grammar output

asegal
Level 1
Level 1

I 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