Previous button code

Hi everyone, how can i solve this error in “previous button” ?

Select list item: Attempt to get item number 0, of the list (amelie.png mario.png ecole.png cour.png maitresse.png des_eleves.png classe.png maitre.png enfant.png chantal.png patrice.png paris.png maison.png porte.png fenetre.png garcon.png fille.png jardin.png fleur.png rouge.png jaune.png chambre.png salon.png cuisine.png SDB.png lit.png armoire.png bureau.png ordinateur.png ballon.png jouets.png poupee.png robot.png cubes.png dominos.png pantalon.png pull.png chaussures.png selaverv.png sebrosserd.png prendred.png shabiller.png lirelivre.png dormir.png embrasser.png petitdej.png boit.png mange.png diner.png mangerc.png viande.png pates.png pizza.png soupe.png yaourt.png fromage.png jus.png pain.png lait.png oeufs.png beurre.png biscuits.png cafe.png couscous.png poulet.png poisson.png sandwich.png salade.png eau.png fruits.png legumes.png malade.png medecin.png pharmacie.png pharmacien.png medicaments.png maladep.png malt.png fievreux.png mesurertemp.png eternuer.png examiner.png sthetoscope.png thermometre.png abaisselangue.png). The minimum valid item number is 1.

blocks (20)

It seems you have initiated the index with zero so on button click it become as -1 and throws this error. You should add one more condition as the global index is not equal to zero or greater than 0

I change code and it’s ok

blocks (23)

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.