Is Shorter Twig Conditional possible?
The Containment Operator helps with this...


  It returns true if the left operand is contained in the right


{% if craft.request.getSegment(2) in ['knowledge', 'search'] %}


OR

{% if craft.request.getSegment(2) not in ['', 'sale'] %}