# Ending CL Script

**URL:** <https://cl.desmos.com/t/ending-cl-script/8807>\
**Category:** Questions\
**Created:** [September 1, 2026, 8:55pm UTC](https://cl.desmos.com/t/ending-cl-script/8807 "2026-09-01T20:55:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clarissa\_Torres](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/clarissa_torres/32/10763_2.png) [@Clarissa\_Torres](https://cl.desmos.com/u/Clarissa_Torres)\
**Post date:** [September 1, 2026, 8:55pm UTC](https://cl.desmos.com/t/ending-cl-script/8807/1 "2026-09-01T20:55:03Z")

</div>

Hello, I duplicated a Repeated Challenges slide, and I have edited my questions. After the students have completed the 6 problems, I do not know how to end the code? That last line of code is what I am stuck on. I would like it to prompt them to another component that says “You have completed all of the challenges!”

value2Canned =  
when this.pressCount = 0 `x+3=7`  
when this.pressCount = 1 `12=2x-4`  
when this.pressCount = 2 `-4\left(x+2\right)=20`  
when this.pressCount = 3 `\frac{2}{3}x-2=6`  
when this.pressCount = 4 `2x-6=15`  
when this.pressCount = 5 `\frac{x}{5}-3=-7`  
**otherwise `\frac{7x-12}{2}=15-3x+5`**

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [September 1, 2026, 8:58pm UTC](https://cl.desmos.com/t/ending-cl-script/8807/2 "2026-09-01T20:58:01Z")

</div>

Can you share links? Probably both your version and the original you pulled from. I think there are “finished” states on those Repeated Challenges already built in, but I’d have to check it out.
