Help Changing Text Box Fill Color Based on Text
I have several text boxes I would like to change the fill color of based on whatever text is in that text box. As pictured below, if a text box contains "268" the set the box color to Pantone "268" and so on and so forth.
How do I write a script for all 4 text boxes (different Pantones # in each one) to change the color to the corresponding Pantone Color (all swatches exist in my library)?
Any help would be much appreciated.

Primary Pantone Box
If <<Text1>> contains "268"
then Set Box Color to: "PANTONE 268 C"
else if <<Text1>> contains "421"
then Set Box Color to: "PANTONE 421 C"
else if <<Text1>> contains "429"
then Set Box Color to: "PANTONE 429 C"
else if <<Text1>> contains "black"
then Set Box Color to: "Black"
else if <<Text1>> contains "white"
