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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Martin A. Brooks
Date:  
À: Andreas Metzler
CC: exim-users
Sujet: 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