Having trouble with L298N H-Bridge IC
If you take the logic step by step, let's say:

ENA = 1, IN1 = 1, IN2 = 0

(left is the IN, right the EN input, ~ stands for inverted by the bubble)

So the top left AND gate:

1 + 1 = 1

bottom left AND gate:

~1 + 1 = 0

Top right AND gate:

0 + 1 = 0

Bottom right AND gate:

~0 + 1 = 1

So in this case the top left and bottom right transistor are turned on.