Log In  

I'm doing this a lot through my games in loops and I feel like there should be a shorthand for it...?

if a<=0 then a=0 end

And similar type of counting, etc...

P#41900 2017-06-23 20:37 ( Edited 2017-06-24 02:13)

What you want is min() or max(). Sum'n like

P#41904 2017-06-23 22:13 ( Edited 2017-06-24 02:13)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-08-12 05:42:17 | 0.007s | Q:7