This means "if something had been true" or "if something were true." It talks about things that did not happen. It can show you wish things were different.
、に。
If I had studied more, I probably would have passed the exam.
、、に。
If I hadn't been watching TV at that time, I'm sure I would have noticed the earthquake.
に、に。
If you're living in Japan, you'd definitely want to try visiting Kyoto, wouldn't you?
。で…。
I shouldn't have said that. If only he were still working at that company...
に、。
If I had been attending that meeting, we probably wouldn't have reached this kind of conclusion.