Thanks - let's hope the OP stops at my first implementation of FNinput() which maybe I ought to rename FNinput_positive_integer() for clarityHated Moron wrote: ↑Sat 04 Jun 2022, 15:24 More specifically, I would suggest that a function which can return either a string or a numeric is never a sensible approach, unless the result is used in a context when both types can be accepted, which practically means only in a PRINT list.

As presented it would still fall over if too many digits are entered (number too big error) so maybe another function parameter to limit that should be added.
I wouldn't have even contemplated the possibility that different data types be returned had you not mentioned it.