Empty string: Difference between revisions

Content added Content deleted
(! alphabetical order.)
Line 148: Line 148:
REM Check that a string is not empty:
REM Check that a string is not empty:
IF var$ <> "" THEN PRINT "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>
</lang>


Line 174: Line 161:
& !d:~ { neither is d an empty string }
& !d:~ { neither is d an empty string }
)
)
</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>
</lang>