|
Subject: Re: (dsssl) Dynamic defines From: "Russell O'Connor" <roconnor@xxxxxxxxxxxxxxxxx> Date: Mon, 26 Feb 2001 11:45:07 -0800 (PST) |
On Mon, 26 Feb 2001, Devin Weaver wrote:
> I want to (define %show-comments% #t) only if status="draft"
I'd try something like
(define (%show-comments%)
(string=? "DRAFT" (attribute-string (tree-root (current-node)) "STATUS"))
)
Note that %show-comments% is now a function and not a variable, so to use
it you have to write
... (%show-comments%) ...
This is untested.
--
Russell O'Connor roconnor@xxxxxxxxxxxxxxxxxxx
<http://www.math.berkeley.edu/~roconnor/>
``Paradoxically, a refusal to `put a monetary value on life' means that
life is often undervalued.'' -- Artificial Intelligence: A Modern Approach
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: (dsssl) Dynamic defines, Francis J. Lacoste | Thread | Re: (dsssl) Dynamic defines, Devin Weaver |
| Re: (dsssl) Dynamic defines, Francis J. Lacoste | Date | RE: (dsssl) Dynamic defines, Nilsson, Peter |
| Month |