Bug with conditionals

  • /attachments/1314671936743276604/1314671937045270598/Screenshot_2024-12-06_201536.png

    Kittiphum

    1 month ago

    Hi there,

    I have the shown formula in toddle which should check if an item is included in an array. Altough the conditon is true it returns false and i checked multiple times in the database it should be true and not false.
    Screenshot_2024-12-06_201536.png
    1
  • Max

    1 month ago

    Includes does not work that way. You have an array of objects, but you need an array of strings or numbers.
  • I'd use filter to check if the item is present or do a map before the includes
  • Kittiphum

    1 month ago

    yeah figured it out
  • Tod

    1 month ago

    Great energy @Kittiphum! Your continuous contribution to the toddle Community just made you advance to Community Level 2!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.