Quote:
Originally Posted by Austin
Alright so im making a math game app where a math problem is displayed and the user must answer it. When they get it correct I want a string of text displayed. Here is my code...
if (amount = [number1.text intValue] * [number2.text intValue] = [newAmount.text intValue]);
answer.text = @"Correct";;
Someone help me out. Thanks!
|
There is a critical difference between the "=" operator and the "==" operator.
Also, I don't think the "iPhone SDK Tools & Utilities" category is the correct location for this post.