added isEqual() and ifThenElse()