AnsweredAssumed Answered

Check node type; inherited type?

Question asked by lista on Jun 3, 2009
Latest reply on Jun 4, 2009 by lista
For example, I have 'apple', 'orange' and 'banana' types. They all extend the 'fruit' type.
How would I check is a certain node that's of type 'apple' also a 'fruit'?

Obviously, I know that if it's a 'orange', it's also a 'fruit'.
But I need to determine that it's a 'fruit' regardless of this, since new fruit can be added in the future, and I should not have any extra work to do after adding it.

Thanks,
Lista.

Outcomes