I did a simple left-right swipe example in this thread recently.
The if/then/else block test is the relevant part for you, to tell you right or left.
You probably have the rest of the code working by now.
If you have trouble keeping the text and images in sync,
consider switching to a list of pairs ((image1.jpg,image1 text), (image2.jpg,image2 text),...)
and use the lookup in pairs block to translate image file name into label text value.
ABG