Hi!
I am trying to do the following. I have one column which contains different search criteria and another column where I want to search each word against, if it finds a partial match, return the word? How can I do this without a massive nested if statement? Essentially I need it to do a multi search and return one match.
E.G.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Fruit
[/TD]
[TD]Search
[/TD]
[TD]Value (DESIRED RETURN VALUE)
[/TD]
[/TR]
[TR]
[TD]Apples Tree
[/TD]
[TD]mango
[/TD]
[TD]apple
[/TD]
[/TR]
[TR]
[TD]Mangos Juice
[/TD]
[TD]orange
[/TD]
[TD]mango
[/TD]
[/TR]
[TR]
[TD]Watermelons Seed
[/TD]
[TD]melon
[/TD]
[TD]melon
[/TD]
[/TR]
[TR]
[TD]Oranges Tree
[/TD]
[TD]apple
[/TD]
[TD]orange
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to do the following. I have one column which contains different search criteria and another column where I want to search each word against, if it finds a partial match, return the word? How can I do this without a massive nested if statement? Essentially I need it to do a multi search and return one match.
E.G.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Fruit
[/TD]
[TD]Search
[/TD]
[TD]Value (DESIRED RETURN VALUE)
[/TD]
[/TR]
[TR]
[TD]Apples Tree
[/TD]
[TD]mango
[/TD]
[TD]apple
[/TD]
[/TR]
[TR]
[TD]Mangos Juice
[/TD]
[TD]orange
[/TD]
[TD]mango
[/TD]
[/TR]
[TR]
[TD]Watermelons Seed
[/TD]
[TD]melon
[/TD]
[TD]melon
[/TD]
[/TR]
[TR]
[TD]Oranges Tree
[/TD]
[TD]apple
[/TD]
[TD]orange
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]