Anonymous user
Empty string: Difference between revisions
→LOLCODE: Add demonstration
m (omissions) |
(→LOLCODE: Add demonstration) |
||
Line 408:
if len(a$)>0 then print "Not empty."
</lang>
=={{header|LOLCODE}}==
The empty string is a false value in LOLCODE, and is thus amenable to use as the condition of an <tt>O RLY?</tt>
<lang LOLCODE>HAI 1.3
I HAS A string ITZ ""
string, O RLY?
YA RLY, VISIBLE "STRING HAZ CONTENZ"
NO WAI, VISIBLE "Y U NO HAS CHARZ?!"
OIC
KTHXBYE</lang>
=={{header|Lua}}==
|