Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
30
Task/Empty-string/AppleScript/empty-string.applescript
Normal file
30
Task/Empty-string/AppleScript/empty-string.applescript
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
-- assign empty string to str
|
||||
set str to ""
|
||||
|
||||
|
||||
-- check if string is empty
|
||||
if str is "" then
|
||||
-- str is empty
|
||||
end if
|
||||
-- or
|
||||
if id of str is {} then
|
||||
-- str is empty
|
||||
end if
|
||||
-- or
|
||||
if (count of str) is 0 then
|
||||
-- str is empty
|
||||
end if
|
||||
|
||||
|
||||
-- check if string is not empty
|
||||
if str is not "" then
|
||||
-- string is not empty
|
||||
end if
|
||||
-- or
|
||||
if id of str is not {} then
|
||||
-- str is not empty
|
||||
end if
|
||||
-- or
|
||||
if (count of str) is not 0 then
|
||||
-- str is not empty
|
||||
end if
|
||||
Loading…
Add table
Add a link
Reference in a new issue