Core Function isEmpty
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isEmpty( <expression> ) </pre> === Description === Checks if a string is completely empty. === Parameters === ==== expression ==== The string to evaluate. === Return ...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 15: | Line 15: | ||
=== Return Value === | === Return Value === | ||
− | Success: Returns | + | Success: Returns True if expression is empty. |
− | Failure: Returns | + | Failure: Returns False if expression is not empty. |
=== Example === | === Example === | ||
− | Will return | + | Will return True; |
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
$result = isEmpty(""); | $result = isEmpty(""); | ||
Line 27: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Will return | + | Will return False; |
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
$result = isEmpty("The fuzzy blue sweaters..."); | $result = isEmpty("The fuzzy blue sweaters..."); |
Latest revision as of 12:38, 14 June 2015
isEmpty( <expression> )
Contents |
Description
Checks if a string is completely empty.
Parameters
expression
The string to evaluate.
Return Value
Success: Returns True if expression is empty.
Failure: Returns False if expression is not empty.
Example
Will return True;
$result = isEmpty(""); Println("Result:" , $result);
Will return False;
$result = isEmpty("The fuzzy blue sweaters..."); Println("Result:" , $result);