I have an variable it's contains the selected image path, my requirement is count the total path and divide the path by 2 add some text between every 2 image path. the first text and second text are different, while divide the path by 2 and if the Remainder is 1 then the add first text into last image. Can we implement these using a loop .
ThanksExample
Remainder is 0
eg:"some text" image1 "new text" image2
"some text" image2 "new text" image3
e.t.c
Remainder is 1
eg: "some text" image1 "new text" image2
"some text" image2 "new text" image3
for the last image
"some text" image5 "new text" image5
Kevin