Validate file attachments or image upload on save

Validate file attachments or image upload on save

There are two variables available to have the attached or image field values in comma separated string. 

Axp_AttachedFiles - is a variable that will contain the list of files (header attachments) attached as comma separated string.
Axp_LoadedImages - is a variable that will contain image fields as comma separated string.

Using which, a validate expression can be defined as shown below...
iif((Axp_loadedimages # {}) & (Axp_attachedfiles#{}), {T}, {File/image is not loaded})