Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Error : the function "if" must have 3 arguments but has 2
rosie
I got this error while doing the "generate attributes" for my sentiment analysis. The error is caused by this expression:
if(Score > 0, "positive", if(Score < 0, "negative", if(Score == 0, "neutral" )))
I hope that anyone can help me to solve this problem. Thank you very much
Find more posts tagged with
AI Studio
Accepted answers
Marco_Barradas
Hi
@rosie
you are missing the last part of the last if
if(Score > 0,
"positive",
if(Score < 0, "negative",
if(Score == 0, "neutral",
""
)))
What happens if the third if is false?
All comments
Marco_Barradas
Hi
@rosie
you are missing the last part of the last if
if(Score > 0,
"positive",
if(Score < 0, "negative",
if(Score == 0, "neutral",
""
)))
What happens if the third if is false?
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups