Problem with compareInt?

So I’ve tried comparing integers, to give me a random value but only print it if it is greater than 500. While less numbers print than before adding the comparison, they still print when they are less than 500. Is this a bug or am I doing something wrong? I tried the same thing with floats and it still occurred.

This is my setup:
http://puu.sh/hx5k9/ed8d2e3ab9.png

you are rolling the dice twice every frame. right now, you have it set up like:

“roll dice, if greater than 500, roll dice, and print results.”

if you want to display a random number after comparing it, you should store the random number in a variable.

Store the number in a local variable, temporary.

Oh my god, how did I miss that. Thank you!