# Revealing correct answer after student uses text on sketch tool

**URL:** <https://cl.desmos.com/t/revealing-correct-answer-after-student-uses-text-on-sketch-tool/3338>\
**Category:** Questions\
**Tags:** sketch\
**Created:** [May 25, 2021, 8:54pm UTC](https://cl.desmos.com/t/revealing-correct-answer-after-student-uses-text-on-sketch-tool/3338 "2021-05-25T20:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Adams](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/matthew_adams/32/2765_2.png) [@Matthew\_Adams](https://cl.desmos.com/u/Matthew_Adams)\
**Post date:** [May 25, 2021, 8:54pm UTC](https://cl.desmos.com/t/revealing-correct-answer-after-student-uses-text-on-sketch-tool/3338/1 "2021-05-25T20:54:16Z")

</div>

I am trying to use an action button where if the student either draws or uses the text on the sketch tool, the answer reveals itself. So far I can only get the answer to appear if they draw on the sketch. Is there anyway to code it for this to work? Below is the code I have tried so far:

hidden: when (choice1.isSelected(1)) and button1.timeSincePress\>0 and sketch1.sketch.totalStrokeLength\>0 or sketch1.sketch.pointCount\>0 false otherwise true

---

<div class="post-metadata">

**Author:** ![Aethir](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/aethir/32/2767_2.png) [@Aethir](https://cl.desmos.com/u/Aethir)\
**Post date:** [May 25, 2021, 9:02pm UTC](https://cl.desmos.com/t/revealing-correct-answer-after-student-uses-text-on-sketch-tool/3338/2 "2021-05-25T21:02:54Z")

</div>

If that ability exists, it doesn’t appear to be in the documentation yet:

[Sketch Object Documentation](https://teacher.desmos.com/computation-layer/documentation#type:sketch)

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [May 26, 2021, 2:24am UTC](https://cl.desmos.com/t/revealing-correct-answer-after-student-uses-text-on-sketch-tool/3338/3 "2021-05-26T02:24:54Z")

</div>

I can confirm. No sinks or sources for text in sketch _yet_.
