next and previous button

Just to describe the futher function in few words…

If hasNext = TRUE navigate to next …else do what?
If hasPrevious = TRUE navigate to previous …else do what?

Using simple if-else-queris.

if( something TRUE here ) { do something here } else { do something else here}

in CODING-language …

let hasNext =$w("#myDataset").hasNext();// true
if (hasNext===true) {console.log("TRUE")} else {console.log(""FALSE)}

gave you the wrong link…
here the right one to change items…

Good luck…:wink: