Evaluating expressions with given variable values