I use this code inside a buttoncontrol. I wonder if it is possible after the first if-statement to "Pause" for 1 second before it continues with the second if-statement.
I have heard something about sleep(n) where n stands for milliseconds.
But the compiler doesn´t recognice this syntax.
Code:int i = 5; if( i > 0 ) { i = 2; } sleep(100) //This does not work if( i == 2 ) { i = 0; }