Auto Rotating Slide Show
In the tutorial Image Slide Show, we created a slide show that allowed the user to move through an array of images. In this, tutorial we are going to make a slide show that rotates on it's own.
If we were wanting the slide show to loop, then we can change the if statement to an if else statement. The else part of the statement would set count back to zero.
if (count <=2) count++; else count = 0;
Below is an example of the code with the if else statement.