List comprehension format

In a normal list comprehension involving an if and a for loop, the if statement appears after the for loop.

With an else statement, the if/else appears before the for loop.

Why? Does it matter at all where it occurs? That is, before or after the for loop?

How come there’s no help here?

Yes, the if-statements are afterward for list comprehensions.
Example: [x * 2 for x in range(-1, 5) if x > 1 ]

If-else can be done more than one way.

if x > 1:
  print(x * 2)


print(x * 2) if x > 1 else print x