Fixed compilation error frank1

Too many conditions in one if statement