@timer = @timer == 10 ? 0 : @timer + 1Aww.. that was so obvious, why I cannot think that way in first place, thank you.
I really need to focus more.
@thing = @timer / 2 if @timer % 2 == 0Yup, thank you.
About % operator - I have read about this, but never tried using this and forgot about that. 😛
I took a look on that note again and if I'm not mistaking it works like this?
49 % 5 = 4, because 49 : 5 = 9 and there's '4' left - right?
I feel so stupid now.
But at least, I think that was my first question, that really didn't needed its own thread. ( ͡° ͜ʖ ͡°)
I really need to focus more.
@thing = @timer / 2 if @timer % 2 == 0Yup, thank you.
About % operator - I have read about this, but never tried using this and forgot about that. 😛
I took a look on that note again and if I'm not mistaking it works like this?
49 % 5 = 4, because 49 : 5 = 9 and there's '4' left - right?
I feel so stupid now.
But at least, I think that was my first question, that really didn't needed its own thread. ( ͡° ͜ʖ ͡°)