# Need help with Computation layer to check answer

**URL:** <https://cl.desmos.com/t/need-help-with-computation-layer-to-check-answer/3860>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [November 29, 2021, 5:03pm UTC](https://cl.desmos.com/t/need-help-with-computation-layer-to-check-answer/3860 "2021-11-29T17:03:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paige\_Whitacre](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/paige_whitacre/32/3172_2.png) [@Paige\_Whitacre](https://cl.desmos.com/u/Paige_Whitacre)\
**Post date:** [November 29, 2021, 5:03pm UTC](https://cl.desmos.com/t/need-help-with-computation-layer-to-check-answer/3860/1 "2021-11-29T17:03:09Z")

</div>

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_.

---

<div class="post-metadata">

**Author:** ![Paige\_Whitacre](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/paige_whitacre/32/3172_2.png) [@Paige\_Whitacre](https://cl.desmos.com/u/Paige_Whitacre)\
**Post date:** [November 29, 2021, 6:02pm UTC](https://cl.desmos.com/t/need-help-with-computation-layer-to-check-answer/3860/2 "2021-11-29T18:02:30Z")

</div>

Retyped it and it works now
