15 Jul
2003
15 Jul
'03
2:59 p.m.
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