Hi ummm i am a little new to this list but i think you might want to do the loop as normal and then right after the for statement add the -1 checking. i dont know if this will help but i always think that the easy way is the best way so your for statement (i think look like this) for(i=1; i > -1;i++) if (array[i] == -1) break; then agian i must might be going insane like i am normaly. Robert A Rossow AKA Zorn >object with negative number. (I'm using code to >load a list of objects, terminating the list with >a -1) > >However, the for loop is standard.. >for(i=1;if array[i] != -1;i++) +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST