The subcostal nerve (anterior division of the twelfth thoracic nerve) is a mixed motor and sensory nerve contributing to the lumbar plexus.
The anterior segment of the twelfth thoracic nerve, which acts as both a motor and sensory nerve, is integrated into the structure that forms the lumbar plexus. This nerve is referred to as the subcostal nerve.