Else
When the result of a PAD tag is false the part after @else@ is used.
The @else@ construct is a general feature of every PAD tag, it applies to all PAD tags.
When the result of a PAD tag is an empty array the part after @else@ is used.
The @else@ context can also be given with the 'else' option at the tag itself.
| HTML | RESULT |
|---|---|
|
true
|
|
false
|
The @else@ construct is a general feature of every PAD tag, it applies to all PAD tags.
|
PHP constructs/else_4.php |
HTML constructs/else_4.pad |
Result |
|---|---|---|
|
|
false |
When the result of a PAD tag is an empty array the part after @else@ is used.
| HTML | RESULT |
|---|---|
|
|
|
Occurence 1
|
|
|
|
Nothing to see here
|
The @else@ context can also be given with the 'else' option at the tag itself.
| HTML | RESULT |
|---|---|
|
|
|
|
|
Nothing to see here
|
|
Nothing to see here
|