Delete duplicate parameter except with value



I can find duplicate parameters and delete them but im looking to filter out the parameters that have a value and choose those to keep and delete the rest but i’m stuck. Any help would be appreciated.

Delete parameters.pdf (289.1 KB)

Thanks, Jason
Parameter delete3.dyn (22.4 KB)


Update: I am able to filter out the duplicate parameters and delete the ones without value. The value in the parameters do not duplicate, only the ParameterElement ids duplicate.

Regards, Jason