Set Notifications on Conditions Based on Child Tables

Hello, just wanted to ask if there is a way to set the condition in notifications based on child tables in the doctype. Say for example you want a notification to be sent every time a Sales Order contains a certain item code in the items table. I’ve tried to do it unsuccessfully so just wanted to confirm if it is possible.