Eval predicate when doing if statements.

Also, add an equality test function.