in reply to Re^2: if conditional in nested for loop
in thread if conditional in nested for loop

I'm still not able to enter the if conditional

It's no surprise since the first element in @interdomainatoms, 33, is not inside any ranges you defined.

Just guessing, as still some code seems missing: add another loop for $jcounter to check all @interdomainatoms. There are still places for optimisation, but first the code must work.