Change EvaluateAttrBool to EvaluateAttrBoolEquiv to make sure boolean equivalent value can be evaluted to be boolen value.