WOLFRAM SYSTEM MODELER

isEmpty

Return true if a string is empty (has only white space characters)

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Strings.isEmpty"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Strings.isEmpty(string);

Description

Returns true if the string has no characters or if the string consists only of white space characters. Otherwise, false is returned. It is intended for ASCII, white space in UTF-8 is more complicated.

Example

isEmpty("");       // returns true
isEmpty("   ");    // returns true
isEmpty("  abc");  // returns false
isEmpty("a");      // returns false

Syntax

result = isEmpty(string)

Inputs (1)

string

Type: String

Outputs (1)

result

Type: Boolean

Description: True, if string is empty