Re: [exim] Re: Help with "if" syntax

Top Page
Delete this message
Reply to this message
Author: Martin A. Brooks
Date:  
To: Andreas Metzler
CC: exim-users
Subject: Re: [exim] Re: Help with "if" syntax
Andreas Metzler wrote:
> You are opening 9 but closing only 7 curly braces. What exactly are
> you trying to do? "If lookup ... fails then 42 else ...")


In pseudocode:

if (dblookup($domain) is successful){
    return $valuefromlookup
} else {
    return 60
}


The net result being that I either get the real value from the db or a
sane default value if the lookup fails, 60 in this case.

Regards

Martin A. Brooks