Variables

I know you can do

{if pig=true:hello}

But is there a negative for that. As in if pig isn't true then...


{if pig:SUCCESS}{else:FAILURE}

...or:

{if pig:HELLO}{else:GOODBYE}


Test 1

    set("pig", true);
Hello

[[test]]

[[test]]:
{if pig:SUCCESS}{else:FAILURE}

Test 2

    set("pig", false);
Hello

[[test]]

[[test]]:
{if pig:SUCCESS}{else:FAILURE}

For the record, {if pig=true:hello} did NOT work for me. Neither did {if pig==true:hello}.

Only {if pig:hello} did the trick.


Wow, it's like going to church. The SPAM makes almost no sense and has nothing whatever to do with the subject at hand.


Me thinks someone is padding messages to start posting SPAM links...
What is their post count???


XanMag is awesome! (I mention this here because he removed the SPAM from this page, and now everyone wonders what in the heck JC (no relation) and DL are talking about!)


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums