Your basic principle looks sounds by ANDing together your boolean conditions. If it doesn't work then likely one of the conditions cannot be evaluated, and the obvious candidate would be "!noMenuNodes.Contains(NodeTypeAlias as string)". If I where you I'd try each condition individually to see if it works in isolation. That way you should be able to pinpoint which is failing.
Where with multiple conditions
Hit another stumbling block with my limited Razor fu! I have multiple where conditions I would like to check for as follows:
The entire script fails on this so any advice on how to achieve the correct result would be appreciated.
TIA, Simon
Your basic principle looks sounds by ANDing together your boolean conditions. If it doesn't work then likely one of the conditions cannot be evaluated, and the obvious candidate would be "!noMenuNodes.Contains(NodeTypeAlias as string)". If I where you I'd try each condition individually to see if it works in isolation. That way you should be able to pinpoint which is failing.
is working on a reply...