Nasal Conditionals: Difference between revisions

Jump to navigation Jump to search
m
make condition less abstract
mNo edit summary
m (make condition less abstract)
Line 5: Line 5:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
var condition=1; # this evaluates to boolean true
if (condition) {
if (condition) {
     # true block, will  be executed if condition is true
     # true block, will  be executed if condition is true
Line 15: Line 16:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
var condition=1; # boolean true
if (!condition) {
if (!condition) {
     # false block, will  be executed if condition is true
     # false block, will  be executed if condition is true

Navigation menu