|
-
Dec 10th, 2005, 10:12 PM
#1
Thread Starter
Hyperactive Member
Error in if statement. [SOLVED]
How do you test the condition of a radio button so that you can implement if , elseif, else statement blocks?
Code:
if ( lineButton.Selected == true ){
s[ 0 ].move( move, move );;
}
else {
System.out.println("wasn't selected");
}
Last edited by gjon; Dec 11th, 2005 at 09:41 PM.
-
Dec 11th, 2005, 11:18 AM
#2
Thread Starter
Hyperactive Member
Re: Error in if statement.
actually it should be more like.
if(lineButton.isSelected()) {
s[ 0 ].move( move, move );;
} else {
System.out.println("wasn't selected");
}
but i still get the error...
EDIT: nm, i got it...
Last edited by gjon; Dec 11th, 2005 at 09:40 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|