Implement if and block evaluation