Thread: _indexof2
View Single Post
  #15  
Old 09-21-2003, 03:45 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
So, you admit, you just aren't adding three ifs, you are adding other things. And these "ranges" how would you define them?

As for the length of the script, no, I think it is a lot more efficient to say "where is it located?" than several "is it this? No? Well is it that?"

indexof may start to be a less efficient piece of code when used 10000 times; but, from what I have seen of differences in efficiency at this level of iteration, I doubt that it's going to be a problem.
__________________


Help me keep scripting
Reply With Quote