Core Function isEmpty

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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 1 if expression is empty.
+
Success: Returns True if expression is empty.
  
Failure: Returns 0 if expression is not empty.
+
Failure: Returns False if expression is not empty.
  
 
=== Example ===
 
=== Example ===
  
Will return 1;
+
Will return True;
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
 
$result = isEmpty("");
 
$result = isEmpty("");
Line 27: Line 27:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Will return 0;
+
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);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox