This is an archived page. It's not actively maintained.

itemCount

Example

itemCount
Type: integer
Read only property holding the number of child items.
var bucket = document.getElementById("attachmentBucket");
if(bucket.itemCount == 0) {
  dump("\n\n No attachments \n\n");
} else {
  dump("\n\n Attachment Exists \n\n");
}