I know exactly why this happens.
The thing is, EVERY time you get a random float, it generates a new random float. So the debug string float might be 43, while the comparisation float 17.
Thank you for your quick reply. I see, is that because I use event tick to call the custom event? Because I’ve tried with “receive execute” function by using button press function (screenshot is attached).
Let me explain. Everything is fine outside the custom event.
When you print the debug string, inside custom event, it takes a random float value in. So it randomizes a float. Let’s say the randomized float would be 46. Then it prints out the append node, etc. After that, a branch takes a random float value in AGAIN. So it randomizes a float AGAIN. And remember, every time, it will generate a new float. So now it could be 8 for example. Get it now?
So the debug string prints out the wrong value. It’s useless. If you remove the debug string, it will work just fine!
Woooaaah, okay I get it now, that’s something new for me
Many thanks Derzo! Thanks for sharing your knowledge, I feel stupid now hahaha but it’s fun to learn new things. Again, thanks a lot Derzo.