i'm having trouble using the generate arbitary attribute

noha
New Altair Community Member
i want to write an expression that means. If the text column contains keywords 1, 2 and 3 it classifies them as important else it classifies them to be not important. i tried this but it's not working
if([Text](contains(%{keyword1} || %{keyword2} || %{keyword3})), "important", "not important")
if([Text](contains(%{keyword1} || %{keyword2} || %{keyword3})), "important", "not important")
Tagged:
0
Answers
-
i also tried this if([Text]==eval(#{keyword1}||#{keyword2}||#{keyword3}), "not important", "important")0