[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expression statements
- From: Martin Guy <martinwguy@...>
- Date: Mon, 16 Aug 2010 22:11:55 +0200
On 8/16/10, Jonathan Castello <twisolar@gmail.com> wrote:
> In which case, I'm confused. Which language actually makes "" a false value?
Unix shell scripts (or, to be pedantic, the "test" program, a.k.a
"["), where a single string is true if it contains anything. e.g.
if [ "" ]; then
echo t
else
echo f
fi
will say "f". But I can't recommend compiling shell scripts into Lua... :)
M