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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Martin A. Brooks
Dátum:  
Címzett: Andreas Metzler
CC: exim-users
Tárgy: 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