Anonymous user
Empty string: Difference between revisions
Added Dyalect programming language
(Added Dyalect programming language) |
|||
Line 380:
}
</lang>
=={{header|Dyalect}}==
Demonstrate how to assign an empty string to a variable:
<lang dyalect>var str = ""</lang>
Demonstrate how to check that a string is empty:
<lang dyalect>if !str { }
//or
if str.isEmpty() { }</lang>
Demonstrate how to check that a string is not empty:
<lang dyalect>if str { }
//or
if !str.isEmpty() { }</lang>
=={{header|Clojure}}==
|