Displaying peak speed

https://x.thunkable.com/copy/2ee88bfec3b28abdfd2a1bf6bde0c6e2

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?

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

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

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