Empty string: Difference between revisions
→{{header|Lasso}}: adding examples for Lasso detecting empty strings
(→{{header|D}}: Add Déjà Vu example) |
(→{{header|Lasso}}: adding examples for Lasso detecting empty strings) |
||
Line 513:
=={{header|LabVIEW}}==
{{VI solution|LabVIEW_Empty_string.png}}
=={{header|Lasso}}==
<lang Lasso>//Demonstrate how to assign an empty string to a variable.
local(str = string)
local(str = '')
//Demonstrate how to check that a string is empty.
#str->size == 0 // true
not #str->size // true
//Demonstrate how to check that a string is not empty.
local(str = 'Hello, World!')
#str->size > 0 // true
#str->size // true</lang>
=={{header|Lhogho}}==
Lhogho is a Logo compiler for Windows and Linux
|