Check to see if something is in an array
#5

That is incorrect. If the first vehicle doesn't match, it will return the error without even checking the rest of the array. Never return inside a loop unless you explicitly want to break it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)