added ifelse

added first semi-useful result from the PHP course