Extensions

Extensions

Is there a way/extension that can check to see if a specific condition is met and if so, display a message?
For example, New york has required a signature for delivery of products that are linked to weight management, etc.  Can an extension determine if the shipping address is new york as well as if there are any products on the order that require a signature at time of delivery, and if so display information about the rule along with the extra fees in shipping?