Need help with Computation layer to check answer

problem = function1
answer = 10

studentAnswer =problem.numericValue

content: when (studentAnswer = answer and problem.submitted) You are CORRECT!
when (problem.submitted) “Your answer is incorrect, please try again.”
otherwise " "
Says Syntax Error : Expected _ OTHERWISE_ token but found IDENTIFER.

Retyped it and it works now