Except on a specified condition; if not.
"You cannot enter the building unless you have your identification card."
The word "unless" comes from Middle English, originally meaning "(not) on a less compelling condition." Over time, the negative element shifted from the front of the phrase to the beginning of the word itself.