eval_variables_constants function

Evaluate variable validity