Virtual Momentary Push Button to adjust light percentage?

I have created a momentary push button. What I want that to do is adjust the light. So if the light is on at 50%, if I press the momentary button it will add x% (say 5%). So now the light is at 55%. If I hit the button again it will now be 60%. There is more behind it than just going into the light and adjusting it to the level I want it at.

I am using webCoRE, just kinda stuck with adding a percentage to a device that is already on

If (Virtural Button) changed
Then Light precentage + 5%

Got it! Just made a variable.

CLevel = Light current level

if button is pressed
then
Light setLevel = (CLevel + 10)

1 Like