Empty string: Difference between revisions
Content added Content deleted
(→{{header|D}}: Add Déjà Vu example) |
(→{{header|Lasso}}: adding examples for Lasso detecting empty strings) |
||
Line 513: | Line 513: | ||
=={{header|LabVIEW}}== |
=={{header|LabVIEW}}== |
||
{{VI solution|LabVIEW_Empty_string.png}} |
{{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}}== |
=={{header|Lhogho}}== |
||
Lhogho is a Logo compiler for Windows and Linux |
Lhogho is a Logo compiler for Windows and Linux |