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

Página Inicial
Delete this message
Reply to this message
Autor: Martin A. Brooks
Data:  
Para: Andreas Metzler
CC: exim-users
Assunto: 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