Assigning parameter name based on area value

Good morning,

I would like to know how can I assign a text value to an Area Parameter based on the area size.
I want to assign the text " large " to a parameter called “size” if the area is between 500 and 600 SF, and the text “medium” if the area is between 400 and 500, and the text “small” if the area is between 300 and 400 SF.
Is there a way to do that with Dynamo to run in all my area plans in Revit?

Thank you very much in advance!

Hi Georges, probably there is a more elegant, without repeating the filtering, way of doing it but this one is easy:

Hope it helps.

It works great thank you!
I had another question though. If I want to filter out areas that have a name other than “Unit”, how would I proceed?
Basically apply this macro to only areas with the name “Unit”?
Thank you again!

Basically you have to add another filter, but using the name as criteria.

Note that i’m not a very experienced user, so probably there are better solutions. This one works for your three categories (big, medium and small), if you need more you´ll have to add more filters or find a solution which can loop through them.

Thank you!