Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Empty-string/Lasso/empty-string.lasso
Normal file
12
Task/Empty-string/Lasso/empty-string.lasso
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
//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
|
||||
Loading…
Add table
Add a link
Reference in a new issue