Stumped on changing dim level

I should be able to figure this out!!! I’ve read the PLEG basics and scoured the forum, but I’m not finding it.

I have a condition that I want to change the dim level of a specific light - I want to reduce the loadLevel by 10 every time the condition fires. I’ve tried in UI7 using the advanced editor

setLoadLevelTarget newLoadLevelTarget = {(GetLoadLevelStatus - 10)} – result light goes off entirely no matter what the dim level

I’ve also tried GetLoadLevelTarget in the same syntax…I’m sure I’m just missing something stupid easy, but I’m stumped!

Ahh…posted too soon - sometimes writing it out makes you have that “aha” moment.

I needed to add a Device Properties to store the LoadLevelStatus in. All set now…