#Checking for valid inputs. Scanner try convert to float and break. Catch printLn invalid input!

6 messages · Page 1 of 1 (latest)

dull spindleBOT
#

Hey, @drowsy root!
Please remember to /close this post once your question has been answered!

drowsy root
#

Can someone tell me if this is the right way to do this?

#

I am trying to ask for an input and then try to convert to float. If that works the loop should break. If not it should give a warning "invalid response!".

timid pawn
drowsy root
#

!close