# Displaying peak speed

**URL:** https://community.thunkable.com/t/displaying-peak-speed/2382098
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [April 20, 2023, 10:46am UTC](https://community.thunkable.com/t/displaying-peak-speed/2382098 "2023-04-20T10:46:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![markojelavi1rt](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@markojelavi1rt](https://community.thunkable.com/u/markojelavi1rt)
#### Post date: [April 20, 2023, 10:46am UTC](https://community.thunkable.com/t/displaying-peak-speed/2382098/1 "2023-04-20T10:46:29Z")

</div>

[https://x.thunkable.com/copy/2ee88bfec3b28abdfd2a1bf6bde0c6e2](https://x.thunkable.com/copy/2ee88bfec3b28abdfd2a1bf6bde0c6e2)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/2403b7f3f5073f3aab1ac944f52b9511224f6c1a.png)

I initialized two variables. One for current speed and one for peak speed. Current speed updates every 0.4 and compares itself to the peak speed. If current speed is greater than peak speed it should assign peak speed to it but it doesn’t work. Only my current speed works and displays itself. Peak speed stays as ‘label’ the entire time. Any help?

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [April 20, 2023, 11:55am UTC](https://community.thunkable.com/t/displaying-peak-speed/2382098/2 "2023-04-20T11:55:45Z")

</div>

You’re comparing strings here, not numeric values it would seem at first glance.

---

<div class="post-metadata">

### Author: ![markojelavi1rt](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@markojelavi1rt](https://community.thunkable.com/u/markojelavi1rt)
#### Post date: [April 20, 2023, 3:08pm UTC](https://community.thunkable.com/t/displaying-peak-speed/2382098/3 "2023-04-20T15:08:12Z")

</div>

Yeah. I used a + 0 block with the variable block and now it works. Thanks.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [July 19, 2023, 3:09pm UTC](https://community.thunkable.com/t/displaying-peak-speed/2382098/4 "2023-07-19T15:09:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
