Record Collection test syntax problem?

Here is my code:

I couldn’t figure why my code didn’t work but the solution code did, perhaps it’s because I use else if on the new line? Why? Since I used else if on a new line in my code from previous lessons and it was perfectly functional.

Could you share your code not as image, and link to the challenge in question? That would make easier to help. In Get Help button there’s Ask for Help option, it will do most of that for you.

I can see couple typos in the records variable within the two first else ifs, that might be reason, but I can’t be certain without trying the code.

Right, I’ve just finished editing those typos and it worked. Had to go to text compare site to see the problem. Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.