Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Empty-string/FutureBasic/empty-string.basic
Normal file
17
Task/Empty-string/FutureBasic/empty-string.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
window 1, @"Empty string", (0,0,480,270)
|
||||
|
||||
CFStringRef s
|
||||
|
||||
s = @""
|
||||
if ( fn StringIsEqual( s, @"" ) ) then print @"string is empty"
|
||||
if ( fn StringLength( s ) == 0 ) then print @"string is empty"
|
||||
if ( len(s) == 0 ) then print @"string is empty"
|
||||
|
||||
print
|
||||
|
||||
s = @"Hello"
|
||||
if ( fn StringIsEqual( s, @"" ) == NO ) then print @"string not empty"
|
||||
if ( fn StringLength( s ) != 0 ) then print @"string not empty"
|
||||
if ( len(s) != 0 ) then print @"string not empty"
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue