Example:
If the original scanned document is less than 1 MB, e-mail a copy to the public relations department.
Use the less than operator to check the size of the original document.
if (original.document.GetDocumentSize() < 1000000)
then
with EmailNotes
.To="Human Relations"
.From=original.username
.Subject="Important News"
.Message="Please Review"
.SaveMessage=FALSE
.PreventCopying=FALSE
.ReturnReceipt=FALSE
.MailImportance=LDD_PRIORITY_NORMAL
.DeliveryPriority=LDD_PRIORITY_NORMAL
.DeliveryReport=LDD_DELIVERYREPORT_FAILURE
.MoodStamp=LDD_MOODSTAMP_NORMAL
.Go()
endwith
endif
If/Then/Else
Adding the Else to the If/Then statement allows you to execute a different set of statements if the
Boolean expression is FALSE. The format is:
if (expression)
then
statement1
statement2
else
statement3
statement4
endif
If the expression is TRUE, only the statements between then and else are executed.
If the expression is FALSE, only the statements between else and endif are executed.
49
Need help?
Do you have a question about the Document Distributor and is the answer not in the manual?
Questions and answers