Swordslayer, i got it! thanks for all!1 finally I've develop the function this and works! :smile: fn getNamesOfMeshesThatRequireUV2 = ( Local meshesThatRequireUV2 = #() for i =1 to prueba1.count do ( Local theName = prueba1[i] Local checked = True for j=1 to prueba2.count do ( Local exceptionName = substituteString…
Hi everyone! I'm trying to develop a tool which has 2 arrays (Prueba1 is the main array and prueba2 contains the words that musn´t appear). First erase the " * " character and later through the "FindString" function check if it was a string correct or not. But i have an exception which i don't see right now, this exception…
This is why side-effects make stuff hard :smile: You're iterating over an array and modifying that array at the same time. Either collect a new array as you go instead of deleting from you working set, or iterate backwards (i.e. for i = prueba1.count to 1 by -1 do (local TheName = prueba1[i] ...).