Document condition check logic