From: Peter Rolf <peter.rolf@arcor.de>
Subject: variables
Date: Tue, 15 Jul 2003 14:59:44 +0200 [thread overview]
Message-ID: <3F13FAC0.4040502@arcor.de> (raw)
I want to test, if a given variable is empty or not. I tried the following,
but the test is always false. Is this a bug or a feature ;)
Any help is welcome.
\starttext
\setvariables[test]
[first=,
second=something,]
\def\TestVAR#1{\getvariable{test}{#1}}
\if\TestVAR{first}\empty %
The variable test:first is empty.\else
The variable test:first contains \TestVAR{first}.\fi
\if\TestVAR{second}\empty %
The variable test:second is empty.\else
The variable test:second contains \TestVAR{second}.\fi
\stoptext
Regards,
Peter
next reply other threads:[~2003-07-15 12:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 12:59 Peter Rolf [this message]
2003-07-15 14:22 ` variables Taco Hoekwater
2003-07-16 9:11 ` variables Peter Rolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F13FAC0.4040502@arcor.de \
--to=peter.rolf@arcor.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).