I would suggest that you simplify that line.
Guessing from the line, you have sprites that are made invisible when something happens.
Instead of checking every single sprite in that line, try something like setting a global variable named something like 'still_visible' (using appropriate Tier 1 typing) to the number of sprites that need to be cleared. Then, when a sprite is made invisible, reduce set_visible by one. If a sprite can later be made visible again, increase set_visible by one.
Then your If statement could look like this:
IF GETSPRITECOLLISION(700,152)=1 and jokhit = 1 and still_visible = 0
printc("Winner")
endif
Cheers,
Ancient Lady