IF-ELSE PRIMITIVE WORKING