Hello,
I have a process sequence database, where the contents are the product name and the process name. I want when my tracking database shows the process name of product XXX in line 3, then my text input can automatically detect the process name in line 4.

When my tracking database shows the product process name XXX in line 4, my text input can automatically detect the process name in line 5.
and keep going until the final line of the process name sequence of the product, then my input text can automatically detect the words "process is complete".
This is the example of my process sequence database.
| Product | machine | process |
| xxx | aaa | blabla |
| xxx | bbb | blibla |
| xxx | ccc | blable |
| yyyy | bbb | blabli |
| yyyy | ccc | blabla |
| yyyy | aaa | blable |
| yyyy | ddd | blablu |
How to do it? Can anyone help me?