- 3.6. Function reference
3.6.14. firstof() - 3.6.13. entity()
« Previous - 3.6.15. indent()
Next »
3.6.14. firstof()
| Reference | mixed firstof(...) |
|---|
Returns the first argument that is not empty:
{firstof($foo, $bar, $joe)}
This may be used to set default values for the variables, if they are not defined by the script:
<p parse:class="firstof($class, 'defaultClass')">...</p>
- 3.6.14. firstof()
3.6. Function reference - « Previous
3.6.13. entity() - Next »
3.6.15. indent()