try to use double == in your condition
1 person found this helpful
Maybe I'm missing something but visible being boolean why you don't use:
if (MC_Dice1.visible &&
if .visible is an object then you should use MC_Dice1.visible == true
As marcanw indicates, when you are testing a boolean property you do not need to use the ==. A conditional is simply evaluating the true or false value of the arguments, so if the values are already boolean (true or false) then you can simply evaluate their value rather than compare them to equaling true or false.
Thanks for the input.This now works a treat!!! Thanks