Question
Hello,
I'm having a problem with IF statements.
If it evaluate to true, then I get a "1" in my page instead of the "then" text.
I've got:
%IF{"'%USERNAME%'='KathyDeLaCruz'" then "test text"}%And when I'm
KathyDeLaCruz, the page displays a
1 If I'm not, I get nothing. So I think the if statement is evaluating correctly - it's just not displaying what I want.
Can someone tell me what I'm doing wrong?
Thanks!
Kathy
Environment
--
KathyDeLaCruz - 01 Oct 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Try this:
%IF{ "$ WIKINAME='KathyDeLaCruz'" then="test text" }%
For a full description see
IfStatements.
--
MartinKaufmann - 01 Oct 2008
Oooh, that works perfectly with the spaces. Thank you!
--
KathyDeLaCruz - 01 Oct 2008