Jump to content

Empty string: Difference between revisions

Added BBC BASIC
(Added BBC BASIC)
Line 65:
& !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>
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.