comparing content of two fields

John Dixon dixonja at hotmail.co.uk
Thu Apr 28 13:01:28 EDT 2011





> Be careful with repeat for each. You cannot change the content of the object or block you are repeating through. "Unexpected results" is an understatement. You need to work with a copy, making sure you don't add or remove the each element (each word, each line etc.) else you get out of sync. 
> 
> Bob

Using 'repeat for each' with a counter is still faster than 'repeat with'

   put 1 into count
   repeat for each line thisLine in fld 1
      if line count of fld 1 = whatever then doSomething
      add 1 to count
   end repeat

be well
 		 	   		  


More information about the use-livecode mailing list