if the condiiton is false repeat the function.
in collision profile node you can set your own collioin profiles. create two profiles in projectsettings > Engine > Collision :: create new object channel
projectsettings > Engine > Collision :: create new object channel
hope it helps cheers!