var myAttribute = "attributename";
var myControl = Xrm.Page.ui.controls.get(myAttribute);
var myCheckboxValue = myControl.getAttribute().getValue();
// returns True or false
// returns True or false
if (myCheckboxValue == true)
{
//Code- eg: hide or show a control
}