Results 1 to 2 of 2

Thread: Error in if statement. [SOLVED]

  1. #1

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    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.

  2. #2

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    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
  •  



Click Here to Expand Forum to Full Width