https://groups.google.com/d/msg/voiceattack/CI1jLDToIFM/bZ9dLxkSym8J
--
---
You received this message because you are subscribed to a topic in the Google Groups "VoiceAttack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/voiceattack/5GNcSLtH5_U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to voiceattack...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
The alternative would be to use a wildcard and "{CMD_AFTER}", but then you get numbers as text ("one" instead of "1") that you need to deal with.
Begin Text Compare : [{CMD_AFTER}] Equals 'One'
Set small int (condition) [ScrubCount] value to 1
Else If Text Compare : [{CMD_AFTER}] Equals 'Two'
Set small int (condition) [ScrubCount] value to 2
Else If Text Compare : [{CMD_AFTER}] Equals 'Three'
Set small int (condition) [ScrubCount] value to 3
Else If Text Compare : [{CMD_AFTER}] Equals 'Four'
Set small int (condition) [ScrubCount] value to 4
Else If Text Compare : [{CMD_AFTER}] Equals 'Five'
Set small int (condition) [ScrubCount] value to 5
Else If Text Compare : [{CMD_AFTER}] Equals 'Six'
Set small int (condition) [ScrubCount] value to 6
Else If Text Compare : [{CMD_AFTER}] Equals 'Seven'
Set small int (condition) [ScrubCount] value to 7
Else If Text Compare : [{CMD_AFTER}] Equals 'Eight'
Set small int (condition) [ScrubCount] value to 8
Else If Text Compare : [{CMD_AFTER}] Equals 'Nine'
Set small int (condition) [ScrubCount] value to 9
Else If Text Compare : [{TXTNUM:'{CMD_AFTER}'}] Does Not Equal ''
Make sure the value is a number at all
Set small int (condition) [ScrubCount] value to the converted value of {TXTNUM:'{CMD_AFTER}'}
End Condition
{TXTREPLACE:variableName} - This will return the text variable's value with the text indicated in from as to. For example: Token, 'myToken' value set to, 'This is a test'.
{TXTREPLACE:myToken:test:monkey} renders as 'This is a monkey'.
{TXTNUM:variableName} - This will attempt to remove all characters except numeric
(0-9, ., -).
To unsubscribe from this group and all its topics, send an email to voiceattack+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to voiceattack+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "VoiceAttack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/voiceattack/5GNcSLtH5_U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to voiceattack+unsubscribe@googlegroups.com.