Empty string: Difference between revisions
Content added Content deleted
(Added Dyalect programming language) |
|||
Line 380: | Line 380: | ||
} |
} |
||
</lang> |
</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}}== |
=={{header|Clojure}}== |