PDA

View Full Version : variable question



kidpablo
September 22nd, 2003, 08:32 AM
I have a variable called 'count'. When certain buttons are clicked, I add +1 to the 'count'.

How would I say: when 'count' = 30, perform this action?

thanks

j0se
September 22nd, 2003, 08:45 AM
if(count==30){

//do something

}

kidpablo
September 22nd, 2003, 08:47 AM
Excellent. Thankyou.