Family load into project by dynamo document.loadfamily

Hello,

For my revit project I want to load a family into a project based on a bool value. But I just cant figure it out.

.
How can I load a family into the project based on the filepath?

Thank you.

you can try form here,

the filtering condition you need explains to have better clarification.