controlling the speed/rate with a shift register outs(kinda Larson scanner)

chengmania:
Is it a short code for if...then...else?

Yes, but it's not something you should try to emulate/use...

(it causes code readability problems like the one you're experiencing right now)