Squirting

How do you know that you are squirting or just pissing on yourself? When you are in the act do you have to let your body go to squirt or does it just happen when your body builds up enough pressure?