If-statement gives wrong result

Not the false, the shortest list…irrespective if its plugged into the true or false