I have a Shortcut that I can ask for local bus detours. Most of our buses are number routes, but there are some letter routes.
The API requires requests in the form of ?route=17 or ?route=XH.
When using “ask for input”, if you say “seventeen” sometimes you’ll get “seventeen” and sometimes you’ll get “17”. In cases of the former, I’d like to pump the text through the Number block.
The problem is that the Number block will hard-error and crash the Shortcut if you try to pass a string that can’t be converted to a number.
What I’m looking for is more of the “match text” behavior, where if nothing fits it just has empty output.