RosettaCodeData/Task/Empty-string/FutureBasic/empty-string.futurebasic

14 lines
314 B
Text
Raw Normal View History

2016-12-05 23:44:36 +01:00
include "ConsoleWindow"
dim as Str255 s
s = ""
if s == "" then print "String is empty"
if s[0] == 0 then print "String is empty"
if len(s) == 0 then print "String is empty"
s = "Hello"
if s <> "" then print "String not empty."
if s[0] then print "String not empty."
if len(s) > 0 then print "String not empty."