The but for test is used to determine causal connection in legal cases.
In order to pass the but for test, the action must be a necessary condition for the outcome.
Determining the factual cause of an event often involves applying the but for test.
The but for test helps in establishing proximate cause in tort law.