256
edits
Line 77: | Line 77: | ||
=== Miscellaneous === | === Miscellaneous === | ||
==== | ==== notempty ==== | ||
'' | ''mixed'' '''notempty'''(''mixed'' value[, ''string'' true[, ''string'' false]]); | ||
Returns the | Check's if the first argument is not empty. Returns TRUE or FALSE if the optional arguments aren't specified. If they are specified it returns the second argument if TRUE and the third argument if FALSE. | ||
'''Example''' | '''Example''' | ||
notempty(""); // Returns false | |||
notempty("Foobar"); // Returns true | |||
notempty(6 > 2); // Returns true | |||
notempty("", "Not empty", "Empty") // Returns "Empty" |
edits