Since this serves no current functionality, beyond being a proof of concept - I’ll post it. The following is a box, that iterates an internal counter by 1 - until a limit is reached, then loops back to 1. A button is used to iterate the count, and a medium screen is used to display the current iteration.
Use this as a foundation to examine how one could create iterating variables, looping variables, and utilize Mux into usable output. To learn what all this means, see the guide.
{“assembly”:{“type”:“type-a electronic mechanism”},“components”:[{“type”:“button”},{“type”:“starter”},{“type”:“sixteen multiplexer”,“inputs”:[[1,0,5],[2,0,“Test 1”],[3,0,“Test 2”],[4,0,“Test 3”],[5,0,“Test 4”],[6,0,“Test 5”],[7,0,“Test 6”],[8,0,“Test 7”],[9,0,“Test 8”],[10,0,“Test 9”],[11,0,“Test 10”],[12,0,“Test 11”],[13,0,“Test 12”],[14,0,“Test 13”],[15,0,“Test 14”],[16,0,“Test 15”],[17,0,“Test 16”]]},{“type”:“memory chip”,“name”:“MEM COUNT”,“inputs”:[[1,0,5]]},{“type”:“greater than gate”,“inputs”:[[1,0,5],[2,0,16]]},{“type”:“addition circuit”,“inputs”:[[1,0,5],[2,0,1]]},{“type”:“constant chip”,“name”:“CONSTANT 1”,“special”:1},{“type”:“memory chip”,“name”:“MEM ADD”,“inputs”:[[1,0,5]]},{“type”:“tenth-sec delay circuit”},{“type”:“medium screen”,“inputs”:[[1,0,“Test 5”]]}],“wires”:[[[1,“A”,1],[6,“A”,1]],[[2,“A”,1],[4,“A”,1]],[[3,“I”,1],[4,“O”,1]],[[3,“O”,1],[10,“I”,1]],[[3,“A”,1],[4,“A”,2]],[[3,“A”,2],[10,“A”,1]],[[4,“I”,1],[7,“O”,1]],[[4,“I”,1],[8,“O”,1]],[[4,“O”,1],[6,“I”,1]],[[4,“A”,1],[9,“A”,2]],[[5,“I”,1],[6,“O”,1]],[[5,“A”,1],[6,“A”,2]],[[5,“A”,2],[7,“A”,1]],[[5,“A”,2],[9,“A”,1]],[[5,“A”,3],[8,“A”,1]],[[5,“A”,3],[9,“A”,1]],[[6,“O”,1],[8,“I”,1]]]}
Pictured: Partial expected output. Note that there is a mandatory 0.1 second delay between iterations, which could probably be overcome with some cleverness. I went with the method that was most apparent to me.