Anonymous user
Empty string: Difference between revisions
→{{header|Burlesque}}
(Add Self version) |
|||
Line 148:
REM Check that a string is not empty:
IF var$ <> "" THEN PRINT "String is not empty"
</lang>
=={{header|Burlesque}}==
Empty string is <tt>""</tt> and checking for empty strings (or empty lists) can be done with the <tt>nu</tt> command.
<lang blsq>
blsq ) ""
""
blsq ) ""nu
1
blsq ) "a"nu
0
</lang>
|