Navigation in branched slides (scenarios)

My course has a number of ‘decision points’, e.g. slides with quizzes, where the next sequence of slides depends on the user’s answer. Each slide has a next and back buttons. I had not found a solution to make these navigations buttons work properly.