How to sequence or switch case automatically?

Did you check the library website?