Manipulating parts of a multi-dimensional array

Monte Goulding monte at sweattechnologies.com
Sun Jun 16 21:07:14 EDT 2013


On 17/06/2013, at 10:53 AM, J. Landman Gay wrote:

> Pretty much, yes. I didn't ask my original question correctly. I want to see if a particular value is contained in any element at a certain level without looping through to check each one. Sort of like we can say "if tString contains "dog" then..."
> 
> I didn't think we could but was sort of hoping, or wondering if anyone had a good, quick way to do it. I vaguely recall Trevor mentioning something about "the elements of an array" but I can't remember what it was.

So you want:

if there is an element "dog" in tAnimals["mammals"] then
  
Seems like a handy feature Jacque... you really will need to start playing with the engine one of these days ;-)

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!




More information about the use-livecode mailing list