And it works.
But when I try to concatenate it, broadcast message on channel “o”, it doesn’t work. I know this isn’t super important but I’m trying to learn more about concatenation to become a better coder. Could someone explain why when I try concatenating, it doesn’t work?
Concatenation is simplifying block code to significantly shorten the blocks placed.
Change the blocks after the first “if do” block into else-if conditions. [1]
Then, if you want to concatenate, you can turn your blockcode into this:
set [o] to Get Property "bonus"
change [o] by 1
Set Property "bonus"
Value [o]
Broadcast Message on Channel | Create Text With "[channelnamehere]".
Then, you can make channels that receive on [channelnamehere]1, 2, 3 and so on and so forth.
Here’s another explanation on how it works:
click the gear and drag the else block on top of the if i believe ↩︎