Note: Since Articulate doesn't officially support JavaScript, this could change in the future, but...
Jumping around via variables requires JavaScript. Articulate has exposed the JumpToSlide() method under GetPlayer().
On any given Storyline slide, the built-in variable Slide.Id holds the slide ID. Record the IDs of the slides you want to use and assign them, as needed, to a variable named slideID.
From JavaScript, inside a trigger, fetch the value of slideID from Storyline:
var slideID = GetPlayer().GetVar("slideID");
then, jump to your desired slide:
GetPlayer().JumpToSlide(slideID);