I want to check if the checkboxes/Radio buttons are selected. If they are NOT checked then I want to check and if they are checked I want to uncheck them using gotoif.

Could you please help me in doing that?Thanks in advance.

That is the intended use of gotoIf. What you described is very possible. First use the 'storeChecked' command on those checkboxes. Then go to the label for one path to click on the boxes if they are not checked and another label to unselect them if they are checked.