Set parameter based on Area

Hi All,

I was just wondering if it is possible to set a Yes/No parameter based on an Area with a Dynamo script?

For example if I place two identical desks that have an “Area 1” and “Area 2” yes/no parameter assigned to them. I’d like to know which desk is in which area. So I can schedule this later down the line.
After the scripts runs, the correct checkbox would be checked at the red arrow in the picture

Normally I’d do something like this based on what room its in, but I need to use Area this time, since it will be used for larger areas in a complete building.

Thanks in advance for any tips or tricks on how to tackle this!

@Yannick Yes, it is possible. Area Check.dyn (19.4 KB)