Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Trouble with if statement
Trouble with if statement [message #890005] Wed, 20 June 2012 14:33
Matthew Mitchell is currently offline Matthew MitchellFriend
Messages: 2
Registered: June 2012
Junior Member
Hello,

I am currently stuck, the project i am doing requires a user to input a number into a TextView and when clicking the submit button it compares the value the user inputted against to see if it matches 0. If it matches 0 i would like it to output text to another TextView which would state correct, if it is any number other than 0 i would like it to output text to the same TextView but instead saying Incorrect.

I have been trying boolean and things like if (a1 == 0) etc. But i cannot just get the hang of it.

Can anyone help me out?

Thanks,
Matt
Previous Topic:- There is no report design object available.
Next Topic:Add Repository saying site duplicate -- but is NOT
Goto Forum:
  


Current Time: Thu Apr 25 01:14:00 GMT 2024

Powered by FUDForum. Page generated in 0.08480 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top