implemented END and implemented evaluating part of IF