Help using fnc CUT

Hi, if you do this

exten => 7,1,Set(myVar=“2,0,1”)
exten => 7,2,Set(cutVar=${CUT(myVar,1)})

This will set the var cutVar to: 2

But what if i what to stripp 201 without comma? This ->

exten => 7,1,Set(myVar=“201”)
exten => 7,2,Set(cutVar=${CUT(myVar,1)})
And get this Output: 2

How can i do that?

Use the basic sub-string capability that doesn’t require any functions:

${variable-name,offset,length}

There are examples in the sample extensions.conf.

PS this is an Asterisk Support topic, not an Asterisk General one.