Mailtraq - the Complete Email Server

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search


Returns one of two given expressions based upon the result of the first expression. This is similar to the if...then...else construct found in most languages. Three expressions are given to the function. If the first expression evaluates to true the second expression is evaluated and returned, otherwise, if given, the third expression is evaluated and returned.

result := If( Boolean , true [ , false ] )

An expression which evaluates to "TRUE" or "FALSE"
The expression evaluated if Boolean evaluates to "TRUE"
Optional; the expression evaluated if Boolean evaluates to "FALSE". If false is not given and if Boolean evaluates to "FALSE", no value is returned
The result of the evaluation of either true or false
//Example usage
If(UserOf(Header("To")) = "webmaster",
  SetHeader("From", AddressOf("webmaster"),
  SetHeader("From", AddressOf("postmaster")
Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video


   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.