Toggle Animate

n = 2.5 (slider from -5 to 5, step 0.1)
onOff = -1
toggle = If(onOff ≟ 1, false, true)