RosettaCodeData/Task/Empty-string/BBC-BASIC/empty-string.basic
2023-07-01 13:44:08 -04:00

8 lines
251 B
Text

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"