Conditional Formatting Column Text to color code based specific words
I was looking at the conditional formatting for text mode and how to add colors or icons to it. I have a column that already merges several columns to give me the latest update, the person who said it, and the date.
displayname=Latest Update
namekey=latest update
textmode=true
valueexpression=IF(LEN({lastNote}.{noteText})>250, CONCAT(SUBSTR({lastNote}.{noteText},0,249),"...(open for more) -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate}), IF(LEN({lastNote}.{noteText})>0, CONCAT({lastNote}.{noteText}," -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate})))
valueformat=HTML
But for this specific report, I would like to add where if in the text is contains Passed to make the text green and if it contains Fail to make it red or a green flag icon or red flag icon. I haven't seen anything on finding a specific word. Can anyone help me know how to write it?