Re: hateful rant on arrays
Assuming you're only inclementing / declementing by 1,
if(--counter==-1) counter=0;
or
if(++counter==menuArray.length) counter=menuArray.length-1;
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector