How to Hide or show elements of horizontal menu on condition?

Oh, okay. Got it.