[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Template Conditional Logic?
- Subject: Re: Template Conditional Logic?
- From: Stroller <..hidden..>
- Date: Tue, 8 Feb 2011 12:56:13 +0000
On 3/2/2011, at 7:31pm, Luke wrote:
> Is there any way to implement conditional logic in templates, beyond
> variable set/unset if statements?
>
> In particular, for cases where the duedate and invdate are the same in a
> tex invoice, I would like to print "UPON RECEIPT", instead of the
> actual due date.
>
> Is there any convenient way to do this?
The LaTeX package "ifthen" might well be able to do this. I use it for some conditional logic in my template (see previous posting of full details / explanation) and it's a bit unintuitive and weird, but more powerful than you might at first expect.
Stroller.