How to check if text input is a number?

COuld this also serve as the logic?

if it’s even or odd, (or 0)
do the correct stuff with that value
else
let the user know they need to enter a number

2 Likes