#N canvas 340 47 917 733 12; #X obj 82 141 print counter; #X obj 128 171 print end-bang; #X obj 82 81 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 81 638 print counter; #X obj 99 668 print end-bang; #X obj 81 578 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 81 608 for; #X text 76 537 nothing just outputs end-bang \, doesn't freeze; #X obj 82 111 for -10; #X obj 232 141 print counter; #X obj 271 171 print end-bang; #X obj 232 81 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 232 111 for 10; #X text 81 41 one creation argument assumes start at 0 \, steps at 1 and can go negative or positve; #X text 137 111 0 to n+1; #X text 280 111 0 to n-1; #X obj 82 311 print counter; #X obj 135 341 print end-bang; #X obj 82 251 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 204 311 print counter; #X obj 258 341 print end-bang; #X obj 204 251 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 82 281 for 5 10; #X obj 204 281 for 5 -2; #X obj 320 311 print counter; #X obj 387 341 print end-bang; #X obj 320 251 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 320 281 for -10 10; #X obj 82 461 print counter; #X obj 149 491 print end-bang; #X obj 82 401 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 82 431 for 5 10 2; #X obj 225 461 print counter; #X obj 292 491 print end-bang; #X obj 225 401 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 225 431 for 5 -2 3; #X obj 361 461 print counter; #X obj 442 491 print end-bang; #X obj 361 401 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X text 78 382 third creation arguments is step \, it is absolute; #X obj 361 431 for -10 10 5; #X obj 214 638 print counter; #X obj 232 668 print end-bang; #X obj 214 578 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 214 608 for; #X msg 292 578 10; #X msg 333 578 5 10; #X msg 381 578 -10 10 5; #X msg 456 578 10 0 0; #X msg 456 602 0 10 0; #X msg 457 636 0 0 0; #X msg 244 578 -10; #N canvas 131 166 574 597 reference 0; #X obj 8 62 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000 0; #X obj 8 158 cnv 2 550 2 empty empty OUTLETS: 8 12 0 13 #202020 #000000 0; #X obj 8 252 cnv 2 550 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0; #X obj 7 328 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0; #X obj 7 120 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0; #X obj 7 92 cnv 1 550 1 empty empty 1st: 8 12 0 13 #7c7c7c #000000 0; #X obj 7 211 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0; #X obj 7 182 cnv 1 550 1 empty empty 1st: 8 12 0 13 #7c7c7c #000000 0; #X text 107 98 bang - to start the loop., f 48; #X text 107 189 float - counter values; #X text 107 217 bang - when loop ends, f 22; #X text 116 261 if one argument it's the stop value; #X text 116 281 if two arguments it's the start and stop values; #X text 116 301 if three arguments it's the start \, stop and step values; #X obj 23 19 for; #X text 107 125 list - start | start \, stop | start \, stop \, step., f 48; #X text 76 12 for loop with start \, stop and step. can increment or decrement. Decrement stops at n+1 \, increment stops at n-1; #X restore 513 92 pd reference; #X obj 440 311 print counter; #X obj 514 341 print end-bang; #X obj 440 251 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 440 281 for -10 -15; #X text 73 216 two creation arguments if start and end \, also can go both directions \, accpect any positive or netagive numbers; #X text 515 575 if end is 0 start becomoes the end; #X text 511 601 these are equivalent; #X text 458 553 you can pass all parameters to reset everything; #X text 77 552 arguments can be passed as messages the sameway; #X obj 642 461 for 10; #X obj 642 341 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 642 491 print in-loop; #X obj 642 401 t b f; #X obj 674 431 print out-loop; #X obj 699 461 print inner-loop-end; #X obj 699 371 print out-loop-end; #X text 667 339 easy nesting; #X obj 642 371 for 5; #X text 685 412 do something; #X text 558 413 start inner; #X text 382 171 do something after loop ends; #X text 336 141 do something within the loop; #X connect 2 0 8 0; #X connect 5 0 6 0; #X connect 6 0 3 0; #X connect 6 1 4 0; #X connect 8 0 0 0; #X connect 8 1 1 0; #X connect 11 0 12 0; #X connect 12 0 9 0; #X connect 12 1 10 0; #X connect 18 0 22 0; #X connect 21 0 23 0; #X connect 22 0 16 0; #X connect 22 1 17 0; #X connect 23 0 19 0; #X connect 23 1 20 0; #X connect 26 0 27 0; #X connect 27 0 24 0; #X connect 27 1 25 0; #X connect 30 0 31 0; #X connect 31 0 28 0; #X connect 31 1 29 0; #X connect 34 0 35 0; #X connect 35 0 32 0; #X connect 35 1 33 0; #X connect 38 0 40 0; #X connect 40 0 36 0; #X connect 40 1 37 0; #X connect 43 0 44 0; #X connect 44 0 41 0; #X connect 44 1 42 0; #X connect 45 0 44 1; #X connect 46 0 44 1; #X connect 47 0 44 1; #X connect 48 0 44 1; #X connect 49 0 44 1; #X connect 50 0 44 1; #X connect 51 0 44 1; #X connect 55 0 56 0; #X connect 56 0 53 0; #X connect 56 1 54 0; #X connect 62 0 64 0; #X connect 62 1 67 0; #X connect 63 0 70 0; #X connect 65 0 62 0; #X connect 65 1 66 0; #X connect 70 0 65 0; #X connect 70 1 68 0;