Expressions for Discount

I would start here;

Although doesn’t mention setting a maximum.
Perhaps it was setting default value of 10 and the mask only allowing single digit…
[?Prompt] expression offers these options [?<prompt>;<mask>;<default value>;<flags>;<keycodes>]

If you made it a two stage flow with the prompt in an execute automation command in value fields you could define all sorts of prompts should a value be entered wrong using constraints on the command value lide [:CommandValue] > 30 on an ask question prompt saying discount only possible up to 30% and then your action to apply discount would have constraint of [:CommandValue] < 30