[SOLVED] on the slider I added this code (pic).
@Razivoid also mentioned here there is a bool you can just use also.