AnsweredAssumed Answered

Using IF statements in Formula Questions

Question asked by Derrick Genova on May 2, 2017
Latest reply on May 2, 2017 by Derrick Genova

Hello, I'm somewhat new to using Canvas for quizzes and am trying to make a formula question.  Without getting into too many details, the question will provide two variables, x and y.  If 3x < y, the question will have one answer, and if 3x > y, the question will have another.  I was planning to use the IF function to help with this.  There may be a more elegant method, but I was thinking that if 3x < y, the statement could return one value, and if it didn't, it could return another.  However, I cannot seem to find any guides or help on how to use this function, and all my attempts to do it keep giving me errors like "unrecognized token at 8" or "unexpected equals at 5".  Can anyone point me in the right direction?  I've been trying to use the statement if(3x<y,1,0).  I thought that if the first statement were true, it would return 1, and if not, it would return 0.  THANKS!