I want to replace T1 with T2 if the list contains X (It's a string with something more) or else return unevaluated.
Input:list={{1,Y 25,T1},{2,Y 26 V, T1},{3, X 25 D, T1}}
Output:{{1,Y 25,T1},{2,Y 26 V, T1},{3, X 25 D, T2}}
I have tried this:
If[MemberQ[{list}, "X"], Replace["T1" -> "T2"], Unevaluated[Sequence[]]]
Xis not a string, but a variable, correct? $\endgroup$