How to find out if Mail has attachments or if it has no attachments?

When i am using this property- Attachements.Any then the loop does not go in then condition.
Can you tell what could be possibly wrong?