expr_identical_to function

Test that the user has entered a particular expression.