Add support for Equals function and Condition.

Equals and Condition are often used to conditionally
build resources.