Quote:
Originally Posted by fysiks
The modulus is not a bitwise operation and is a common question asked. Therefore, there are many articles/posts that explain how it works. For example, this one looks like it has a good explanation.
|
Ah thanks! I understood it
So it goes x%2 looping between 0 and 1 in this situation.
Quote:
Originally Posted by fysiks
Prefixing a variable with "g" or "g_" is most often used to indicate a variable is a global variable so it's confusing when you have a variable (gCounter) that is not global.
|
I meant to make gCounter global, my mistake.
Quote:
Originally Posted by fysiks
It's not quite clear what exactly you're requesting (because you use the term "limit" in one post and then "spam" in another which are effectively opposites). Could you please write out the sequence of messages that you want to occur. For example: "hello, hello, world, world, hello, hello" or "hello, hello, hello, world, hello hello hello, world", etc.
|
Sorry for my bad explanatory skills.
I want the messages to occur a Limited amount of times.
"Hello, hello, hello"
when it says "Hello" 3 times, to switch by saying
"world, world, world" instead of "hello".