Setting a CheckBox output value when submitting the item

If(<checkbox_control_name>.Value = true, "Yes", "No");

Validate Checkbox is ticked or un-ticked

<checkbox_control_name>.Value = true // ticked <checkbox_control_name>.Value = false // un-ticked