RosettaCodeData/Task/Empty-string/Lasso/empty-string.lasso
2023-07-01 13:44:08 -04:00

12 lines
326 B
Text

//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