The empty() command checks whether a transferred parameter is empty or 0.
This command checks whether a transfer parameter (e.g. a Subject Line Keyword) is present.
Structure of the command
empty('value');
Return value
positive |
if the transferred parameter is empty or 0. |
negative |
if the transferred parameter has a value. |
Parameters
value
The value parameter defines the transfer parameter
Example 1
Line |
Code |
---|---|
01 |
# BEGIN removelfmtags |
02 |
if (!empty('@LARGEFILETEXT@')) { |
03 |
compare('subject','substitute','@LARGEFILETEXT@'); |
04 |
} |
08 |
# END removelfmtags |
Explanation
In this example, the email is checked for the presence of the Subject Line Keyword for Large File Transfer (LFT)(line 02). If the key word is present, it is removed (line 03).