Minimum value in list with 0 is not 0 - is this expected?

Hello fellow Bubblers,

I’m running into something strange that I’m 98% sure worked before…

I have a list of values:

As you can see, I want to get the MIN value of this list. I would expect the min value in this list to be 0.

However Bubble is telling me it’s empty:

Is this normal/expected behavior?

I’m not sure if it returned zero before, but a zero value as a min will return empty. You can add a contitional that says if :min is empty then (print,or return or use) 0.

Thanks for your reply @duke.severn

Due to the root/cause described below the 0 workaround you mentioned won’t work since there is an inherent issue with how 0’s are handled in this situation which specifically involves a range input slider.

This specific scenario involves a slider range input. I reached out to Bubble and they’ve confirmed it’s a bug on the list of things to do.

Here are the bug details/symptoms:

When using a slider in range mode with a range of 1-10, and setting the min to 0, the max value is 0.

When sliding the min value to 1, the max value is 10. When sliding back to 0, the max value is again 0.

Step-by-step instructions:

  1. Create an input slider
  2. Set the input slider to range
  3. Set the min/max to 0, 10
  4. Create a text field to display the min/max value

After loading the screen, you will see your max value is 0

After moving the left slider to 1, the max value appears as 10

Moving it back to 0 sets the max value back to 0.

Bubble has pushed out a fix and I can confirm it works. Thank you @Bubble team!

This topic was automatically closed after 14 days. New replies are no longer allowed.