"boolean" Snippets


View "Truthy & Falsy"
<h2>'Yes'</h2> <mvt:if expr="'Yes'"> 'Yes' is Truthy <mvt:else> 'Yes' is Falsy </mvt:if> <hr> <h2>'No'</h2> <mvt:if expr="'No'"> 'No' is Truthy <mvt:else> 'No' is Falsy </mvt:if> <hr> <h2>''</h2> <mvt:if expr="''"> '' is Truthy <mvt:else> '' is Falsy </mvt:if> <hr> <h2>NOT ''</h2> <mvt:if expr="NOT ''"> '' is Truthy <mvt:else> '' is Falsy </mvt:if> <hr> <h2>1</h2> <mvt:if expr="1"> 1 is Truthy <mvt:else> 1 is Falsy </mvt:if> <hr> <h2>0</h2> <mvt:if expr="0"> 0 is Truthy <mvt:else> 0 is Falsy </mvt:if> <hr> <h2>-1</h2> <mvt:if expr="-1"> -1 is Truthy <mvt:else> -1 is Falsy </mvt:if> <hr> <h2>'1'</h2> <mvt:if expr="'1'"> '1' is Truthy <mvt:else> '1' is Falsy </mvt:if> <hr> <h2>'0'</h2> <mvt:if expr="'0'"> '0' is Truthy <mvt:else> '0' is Falsy </mvt:if> <hr> <h2>'TRUE'</h2> <mvt:if expr="'TRUE'"> 'TRUE' is Truthy <mvt:else> 'TRUE' is Falsy </mvt:if> <hr> <h2>'FALSE'</h2> <mvt:if expr="'FALSE'"> 'FALSE' is Truthy <mvt:else> 'FALSE' is Falsy </mvt:if> <hr> <h2>TRUE</h2> <mvt:if expr="TRUE"> TRUE is Truthy <mvt:else> TRUE is Falsy </mvt:if> <hr> <h2>FALSE</h2> <mvt:if expr="FALSE"> FALSE is Truthy <mvt:else> FALSE is Falsy </mvt:if> <hr> <h2>'NULL'</h2> <mvt:if expr="'NULL'"> 'NULL' is Truthy <mvt:else> 'NULL' is Falsy </mvt:if> <hr> <h2>NULL</h2> <mvt:if expr="NULL"> NULL is Truthy <mvt:else> NULL is Falsy </mvt:if> <hr> <mvt:assign name="g.NULL" value="1" /> <pre>&lt;mvt:assign name="g.NULL" value="1" /&gt;</pre> <h2>NULL</h2> <mvt:if expr="NULL"> NULL is Truthy <mvt:else> NULL is Falsy </mvt:if> <hr> <h2>'undefined'</h2> <mvt:if expr="'undefined'"> 'undefined' is Truthy <mvt:else> 'undefined' is Falsy </mvt:if> <hr> <h2>undefined</h2> <mvt:if expr="undefined"> undefined is Truthy <mvt:else> undefined is Falsy </mvt:if> <hr> <mvt:assign name="g.undefined" value="1" /> <pre>&lt;mvt:assign name="g.undefined" value="1" /&gt;</pre> <h2>undefined</h2> <mvt:if expr="undefined"> undefined is Truthy <mvt:else> undefined is Falsy </mvt:if> <hr>
 
View "Truthy & Falsy"
<h2>'Yes'</h2> <mvt:if expr="'Yes'"> 'Yes' is Truthy <mvt:else> 'Yes' is Falsy </mvt:if> <hr> <h2>'No'</h2> <mvt:if expr="'No'"> 'No' is Truthy <mvt:else> 'No' is Falsy </mvt:if> <hr> <h2>''</h2> <mvt:if expr="''"> '' is Truthy <mvt:else> '' is Falsy </mvt:if> <hr> <h2>1</h2> <mvt:if expr="1"> 1 is Truthy <mvt:else> 1 is Falsy </mvt:if> <hr> <h2>0</h2> <mvt:if expr="0"> 0 is Truthy <mvt:else> 0 is Falsy </mvt:if> <hr> <h2>-1</h2> <mvt:if expr="-1"> -1 is Truthy <mvt:else> -1 is Falsy </mvt:if> <hr> <h2>'1'</h2> <mvt:if expr="'1'"> '1' is Truthy <mvt:else> '1' is Falsy </mvt:if> <hr> <h2>'0'</h2> <mvt:if expr="'0'"> '0' is Truthy <mvt:else> '0' is Falsy </mvt:if> <hr> <h2>'TRUE'</h2> <mvt:if expr="'TRUE'"> 'TRUE' is Truthy <mvt:else> 'TRUE' is Falsy </mvt:if> <hr> <h2>'FALSE'</h2> <mvt:if expr="'FALSE'"> 'FALSE' is Truthy <mvt:else> 'FALSE' is Falsy </mvt:if> <hr> <h2>TRUE</h2> <mvt:if expr="TRUE"> TRUE is Truthy <mvt:else> TRUE is Falsy </mvt:if> <hr> <h2>FALSE</h2> <mvt:if expr="FALSE"> FALSE is Truthy <mvt:else> FALSE is Falsy </mvt:if> <hr> <h2>'NULL'</h2> <mvt:if expr="'NULL'"> 'NULL' is Truthy <mvt:else> 'NULL' is Falsy </mvt:if> <hr> <h2>NULL</h2> <mvt:if expr="NULL"> NULL is Truthy <mvt:else> NULL is Falsy </mvt:if> <hr> <mvt:assign name="g.NULL" value="1" /> <pre>&lt;mvt:assign name="g.NULL" value="1" /&gt;</pre> <h2>NULL</h2> <mvt:if expr="NULL"> NULL is Truthy <mvt:else> NULL is Falsy </mvt:if> <hr> <h2>'undefined'</h2> <mvt:if expr="'undefined'"> 'undefined' is Truthy <mvt:else> 'undefined' is Falsy </mvt:if> <hr> <h2>undefined</h2> <mvt:if expr="undefined"> undefined is Truthy <mvt:else> undefined is Falsy </mvt:if> <hr> <mvt:assign name="g.undefined" value="1" /> <pre>&lt;mvt:assign name="g.undefined" value="1" /&gt;</pre> <h2>undefined</h2> <mvt:if expr="undefined"> undefined is Truthy <mvt:else> undefined is Falsy </mvt:if> <hr>
 
View "Truthy & Falsy"
<h2>'Yes'</h2> <mvt:if expr="'Yes'"> 'Yes' is Truthy <mvt:else> 'Yes' is Falsy </mvt:if> <hr> <h2>'No'</h2> <mvt:if expr="'No'"> 'No' is Truthy <mvt:else> 'No' is Falsy </mvt:if> <hr> <h2>''</h2> <mvt:if expr="''"> '' is Truthy <mvt:else> '' is Falsy </mvt:if> <hr> <h2>1</h2> <mvt:if expr="1"> 1 is Truthy <mvt:else> 1 is Falsy </mvt:if> <hr> <h2>0</h2> <mvt:if expr="0"> 0 is Truthy <mvt:else> 0 is Falsy </mvt:if> <hr> <h2>-1</h2> <mvt:if expr="-1"> -1 is Truthy <mvt:else> -1 is Falsy </mvt:if> <hr> <h2>'1'</h2> <mvt:if expr="'1'"> '1' is Truthy <mvt:else> '1' is Falsy </mvt:if> <hr> <h2>'0'</h2> <mvt:if expr="'0'"> '0' is Truthy <mvt:else> '0' is Falsy </mvt:if> <hr> <h2>'TRUE'</h2> <mvt:if expr="'TRUE'"> 'TRUE' is Truthy <mvt:else> 'TRUE' is Falsy </mvt:if> <hr> <h2>'FALSE'</h2> <mvt:if expr="'FALSE'"> 'FALSE' is Truthy <mvt:else> 'FALSE' is Falsy </mvt:if> <hr> <h2>TRUE</h2> <mvt:if expr="TRUE"> TRUE is Truthy <mvt:else> TRUE is Falsy </mvt:if> <hr> <h2>FALSE</h2> <mvt:if expr="FALSE"> FALSE is Truthy <mvt:else> FALSE is Falsy </mvt:if> <hr>
 
View "Truthy & Falsy"
<h2>'Yes'</h2> <mvt:if expr="'Yes'"> 'Yes' is Truthy <mvt:else> 'Yes' is Falsy </mvt:if> <hr> <h2>'No'</h2> <mvt:if expr="'No'"> 'No' is Truthy <mvt:else> 'No' is Falsy </mvt:if> <hr> <h2>1</h2> <mvt:if expr="1"> 1 is Truthy <mvt:else> 1 is Falsy </mvt:if> <hr> <h2>0</h2> <mvt:if expr="0"> 0 is Truthy <mvt:else> 0 is Falsy </mvt:if> <hr> <h2>-1</h2> <mvt:if expr="-1"> -1 is Truthy <mvt:else> -1 is Falsy </mvt:if> <hr> <h2>'1'</h2> <mvt:if expr="'1'"> '1' is Truthy <mvt:else> '1' is Falsy </mvt:if> <hr> <h2>'0'</h2> <mvt:if expr="'0'"> '0' is Truthy <mvt:else> '0' is Falsy </mvt:if> <hr> <h2>'TRUE'</h2> <mvt:if expr="'TRUE'"> 'TRUE' is Truthy <mvt:else> 'TRUE' is Falsy </mvt:if> <hr> <h2>'FALSE'</h2> <mvt:if expr="'FALSE'"> 'FALSE' is Truthy <mvt:else> 'FALSE' is Falsy </mvt:if> <hr> <h2>TRUE</h2> <mvt:if expr="TRUE"> TRUE is Truthy <mvt:else> TRUE is Falsy </mvt:if> <hr> <h2>FALSE</h2> <mvt:if expr="FALSE"> FALSE is Truthy <mvt:else> FALSE is Falsy </mvt:if> <hr>