Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Contains Function Not Acting as Expected

johnnyt
6 - Meteoroid

Hi,

 

I am trying to use the "Contains" formula below with an If statement to replace strings of text containing the word "OPERATOR".

 

If Contains([speech_txt], "OPERATOR",1) then [speech_txt] = "OPERATOR" else [speech_txt] endif

 

But the text highlighted below doesn't change. Any idea whats happening?

 

johnnyt_0-1602454459475.png

 

3 REPLIES 3
TheOC
15 - Aurora
15 - Aurora

hey @johnnyt!

Its to do with your "[speech_txt] = "OPERATOR"" This wants to just be changed to "OPERATOR". I have attached a workflow showing it working:




Bulien
johnnyt
6 - Meteoroid

Thanks, I knew it was something simple!

TheOC
15 - Aurora
15 - Aurora

not a problem! Glad i could help, hope you've got a great week ahead 🙂


Bulien
Labels