Skip to main content

Help with programming to decide if user input is string or integer?

General • Asked by TomdickLolas

Hey everyone! I am having a bit of trouble with this program of mine I am doing because why not. I am new to coding so its a relatively (should be) simple journal or diary program.

I would like the program to determine if what the user inputs is a string or integer and respond based on that. Ive tried looking this up but i just keep seeing varied and confusing answers that I have trouble getting to work.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.