I don't think there's a limit, only the maximum memory size. A lot of AND's might suggest there's possibly a better way to be doing things, perhaps with bit masking.
The simulator would get stuck on the IF line and Programming Editor needed to be forced to close after about 100 uses of AND. The condition I used was b0 = b1.