02-21-2006 07:17 PM
02-21-2006 07:23 PM
02-22-2006 12:28 AM - edited 02-22-2006 12:28 AM
Message Edité par TiTou le 02-22-2006 07:29 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-22-2006 03:47 AM
If you are incrementing a value in a loop, that intially starts as 0, then the wire immediately before the incrementing function will be value 0 and the wire immediately after the incrementing function will be value 1. If you want to produce a value range 0 to (n-1) then either just connect to the wire immediately before the increment function, or alternatively start with an initial value of -1 and then connect after the increment function.
Of course if all you want is an incrementing value of 0 to (n-1) then you should simply connect to the "increment" [ i ] terminal of the loop structure.
Mark.
No offense - but how can you have a forum rating of "Active Veteran" and yet be asking such a basic fundamental question?