Empty string: Difference between revisions
Content added Content deleted
m (promoted to task) |
(→{{header|Euphoria}}: Euphoria example added) |
||
Line 69: | Line 69: | ||
return s is ""; |
return s is ""; |
||
}</lang> |
}</lang> |
||
=={{header|Euphoria}}== |
|||
<lang euphoria>sequence s |
|||
-- assign an empty string |
|||
s = "" |
|||
-- another way to assign an empty string |
|||
s = {} -- "" and {} are equivalent |
|||
if not length(s) then |
|||
-- string is empty |
|||
end if |
|||
if length(s) then |
|||
-- string is not empty |
|||
end if</lang> |
|||
=={{header|Icon}} and {{header|Unicon}}== |
=={{header|Icon}} and {{header|Unicon}}== |