I'm trying to populate an email address within the BCC field, if and only if the company name has specific text in it. I believe the answer is [IndexOf()](http://help.marketingcloud.com/en/documentation/ampscript/ampscript_syntax_guide/utilities_ampscript_functions/indexof/), but it doesn't seem to be working. Am I doing something wrong here? Do I not need to set the variable? Would love to find the shortest possible code for this.

```
%%[

  Var @co 
  Set @co = "Red Company" 

  IF IndexOf(@AgentName,@co) > 0 THEN 

]%%

"email@email.com"

%%[ENDIF]%%

```

Example of the values in the field are things like:
---------------------------------------------------

**AgentName**  

Red Company  

Red Company, Inc.  

Red Company-Agent123  

Green Company  

Red-Green Company  

The Hide Away  

Cabin in the Woods, LLC.