How APEX Processes Various Conditions and Validations