I'm having some issues with a simple conditional statement.
I'm getting the value of txtX.text from a text field, converting it to an integer, then checking to see if it's greater than 4. When I run this, the application build successfully, but when ever it hits this statement, it freezes. Any ideas?
Code:
int x;
x = (int)txtX.text;
if (x > 4)
{
x = 4;
}
I'm getting the value of txtX.text from a text field, converting it to an integer, then checking to see if it's greater than 4. When I run this, the application build successfully, but when ever it hits this statement, it freezes. Any ideas?