Loading...
  OR  Zero-K Name:    Password:   

Post edit history

script coder's wat

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
9/9/2014 3:58:47 AMPLrankAdminSprung before revert after revert
Before After
1 [quote]Lua does support numbers (and anything) as conditionals[/quote] 1 [quote]Lua does support numbers (and anything) as conditionals[/quote]
2 I think what he meant was that using a number ( or anything except an explicit boolean) as a conditional tells you absolutely nothing about the value of the number itself ( ie. it only says whether it's nil) . 2 I think what he meant was that using a number ( or anything except an explicit boolean) as a conditional tells you absolutely nothing about the value of the number itself ( ie. it only says whether it's nil) . When counting stuff you may want to know whether there were any at all and that's where the simple
3 \n
4 if (smurfs)
5 \n
6 seems more concise and natural than
7 \n
8 if (smurfs > 0)