I have this following condition in my template:
spec: {{- if and (not .Values.first.param) ( not .Values.second.para