ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strisempty

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:strisempty [2017/03/19 20:54] – created korshunfunctions:strisempty [2017/03/19 20:55] (current) korshun
Line 5: Line 5:
 ===== Description ===== ===== Description =====
 Returns true if s is an empty string (''%%""%%'').  Returns true if s is an empty string (''%%""%%''). 
 +
 +A string that consists of only whitespace (e.g. ''%%" "%%'') is not considered empty.
  
 <note important>''0'' is **not** an empty string. It is not a string at all.</note> <note important>''0'' is **not** an empty string. It is not a string at all.</note>
  
 ===== Examples ===== ===== Examples =====
 +<code> 
 +StrIsEmpty("") -> true 
 +StrIsEmpty(" ") -> false 
 +StrIsEmpty("hello") -> false 
 +</code>
  
functions/strisempty.1489949644.txt.gz · Last modified: 2017/03/19 20:54 by korshun