Use when/if instead of and/or+and.