Template:Not
From Pittsburgh Streets
1
The {{not}} template parses an input string as a boolean value and inverts its value; it is the negation of {{boolean}} (see that template for more details).
Usage examples and test cases
{{not|true}}→{{not|false}}→ 1{{not|on}}→{{not|off}}→ 1{{not|YES}}→{{not|NO}}→ 1{{not}}→ 1
In an #if
{{#if:{{not|false}}|That's the truth!|That's a lie!}}→ That's the truth!{{#if:{{not|true}}|That's the truth!|That's a lie!}}→ That's a lie!
