Ok, I know this is a mess. This is why I’m posting it here. I hope you can understand the logic that I am trying to create. Is there a nicer way to make this happen?
else if (((!(lc(this).getByIndex(i).dim2.Shirts)) && ('Nike' in lc(this).getByIndex(i).dim3))
|| (('Nike' in lc(this).getByIndex(i).dim3) && ('Shirts' in lc(this).getByIndex(i).dim2)))
There are basically two statements here: I want this statement to prove true if Shirts AND Nike are present OR Nike but no category at all. Hope that helps, but I will move this over to code review, but will wait for a solid answer so someone gets the cred 🙂 … Thanks for the tip.
Based on GitaarLAB’s answer, how about this?