@danielle-leite-ribei The Javascript switch statement would be a way to handle this task. Something like this:
$w.onReady(function () {
$w("#slider1").onChange((event) =>{
switch (event.target.value) {
case 1:
$w("#text1").text = "That's cool!";
break;
case 2:
$w("#text1").text = "That's really cool!";
break;
case 3:
$w("#text1").text = "That's incredibly cool!";
break;
default:
$w("#text1").text = "That's more than cool!";
break;
}
})
});