Bug with conditionals

  • .kittiphum-1314671936743276604

    Kittiphum

    4 months 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.
    1314671937045270598-Screenshot_2024-12-06_201536.png
    1
  • max.kayr-1314681644719935560

    Max

    4 months 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-1314691018347515954

    Kittiphum

    4 months ago

    yeah figured it out
  • Tod-1314691019563991040

    Tod

    4 months 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.