Change this line to
if info("trigger") contains "Dialog.OK"
I made some charts for myself and posted them in the forum that helps explain what is happening.