Evaluation of expressions with variables