AnalogWrite not working in If Statement

aomerk:
Arduino Uno with ATMega328P Processor cant execute AnalogWrite in If statement.

How do you know? What actually happens?

Post a sample of the output when you run the program.

...R