4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] how to negate
FromSent OnAttachments
Eric d'AlibutNov 15, 2006 4:49 pm 
Thorsten HaudeNov 16, 2006 12:16 am 
Devin RubiaNov 16, 2006 6:16 am 
Eric d'AlibutNov 16, 2006 10:46 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] how to negateActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Nov 16, 2006 12:16:27 am
List:net.sourceforge.lists.courier-maildrop

Hi,

* Eric d'Alibut wrote (2006-11-15 19:49):

I want to say something like, in pseudo-code,

if not $returncode then do this else do this

It looks like in this case you could simply say do this and be done with it. If "do this" and "do this" in your example are different you could still say if $returncode then do this else do this if you simply switch the two "do this"es.

How would 'not $returncode' look as a maildrop expression?

Possibly not at all. While the syntax of the NOT operator is easy to find in the manpage, I would not try to assume that all variables have a truth value. That said, option d. looks best:

d. (!$RETURNCODE)

Thorsten