This is probably the most explanatory post and most helpful:
Just read around the examples and it will explain itself.