RosettaCodeData/Task/Empty-string/BBC-BASIC/empty-string.basic

9 lines
251 B
Plaintext

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"