Onclick Advance to next image using variables?

I'm sure I'm on the right track trying to use a variable to keep this clean:

Left Arrow for going back.

Right Arrow for going forward.

A group of images/text descriptions


Click the Right Arrow to show Next Image. Action: OnClick VariableGroupDisplay add 1. Group1 is set to show if VariableGroupDisplay is Equal to 1.

Click Right Arrow to show Next Image. Action: VariableGroupDisplay add 1. Group2 is set to show if VariableGroupDisplay is Equal to 2.


And etc. Left arrow for going backward simply subtracts VariableGroupDisplay by 1 with each OnClick event.


Only trouble is, it doesn't work.


Can someone point out the error of this process or concept? I suspect that something needs to tell Group1, Group2, et al that the variable has changed so they know to display?


2hawks

Discussions have been disabled for this post