Empty string: Difference between revisions

Content added Content deleted
(Added BBC BASIC)
Line 65: Line 65:
& !d:~ { neither is d an empty string }
& !d:~ { neither is d an empty string }
)
)
</lang>

=={{header|BBC BASIC}}==
<lang bbcbasic> REM assign an empty string to a variable:
var$ = ""
REM Check that a string is empty:
IF var$ = "" THEN PRINT "String is empty"
REM Check that a string is not empty:
IF var$ <> "" THEN PRINT "String is not empty"
</lang>
</lang>