Dynamic variables as conditions for specific rules

Hi, so I have created a simple rule that will turn the switch off when temperature reaches 40 and its working nice. Now the number 40 in here is pretty static and I would like to have some sort of variable that I can increment/decrement in my hubpanel via a button click, so that the user can decide what temperature works for him. Is there a way to do this, or something similar? thanks in advance

Create a Number Item to represent your target temp. Put it on your sitemap using a Slider or Setpoint. In your rule where you currently use <= 40 use <= MyTargetTemp.state as Number (obviously using the actual name of your Item.

Thanks, that solved it !