Template:if both

Usage

{{if both|VAL1|VAL2|THEN|ELSE}} returns THEN if both VAL1 and VAL2 are non-empty, otherwise ELSE.