Finished 1.2. Added if condition with constant.