[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why is "then" required in the if statement?
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Sat, 1 Dec 2007 12:26:45 -0800
I think because the if statement doesn't need parentheses:
if p < 8 then p = 9 end
if no then then how would you interpret this:
if p < 8 p = 9 end
On Dec 1, 2007 12:01 PM, Matt Campbell <firstname.lastname@example.org> wrote:
> Perhaps this is a FAQ, but why does the if statement require the "then"
> keyword after the condition? Does requiring this keyword eliminate some