Limit on CASE or conditions?

Is there a limit as to how many items can be included in the conditions for either CASE or I have a file with approximately 75 unique items I need to check for and act upon. If there is a limit, I may have to make multiple passes through the file as an alternative. So far I haven't found anything in the documentation indicating a limit, however I'm getting lexical errors when all the conditions are included in the statement.


I did some experimentation with the function and it appears the upper limit on the number of conditions seems to be about 50.