JSON Variable Length

I have a ‘Collect Digits’ block that asks the caller to input the casenumber.

I want to have an IF block, that checks if the variable is a specific amount of digits, but not sure how to do that via JSON.

There is JSON function that will do length for you. Something like =length(’$(casenumber)’) should do the trick.