is there a way to have 2 conditions for an if equation?

An example...​

coil widthdimension / dimension if had motorized passline

12"

15
24"20 / 25
30"30 / 35
36"40

I'm trying to make an equation by saying if the coil width is equal to 24 AND has a motorized passline then make the dimension 25 otherwise make it 24

SolidworksGeneral