Skip to main content
dinesha5713
Known Participant
Nov 12, 2024 2:37 PM UTC
Solved

contains({ 1, 2, 3 }, tointeger({}))

The Output is True ,why

    stefanhelzle0001
    Brainy
    Nov 12, 2024 2:44 PM UTC

    3 replies

    stefanhelzle0001
    Brainy
    Nov 12, 2024 2:44 PM UTC
    gayatria0439
    Participating Frequently
    Nov 22, 2024 12:03 PM UTC

    Hi [mention:30bb505c1ca4449ca754b36b7a8ed1d7:e9ed411860ed4f2ba0265705b8793d05] ,

    When the value is an empty list of the same type, it will return True. Yes, we can find this information in the documentation.

    mikes0011
    Brainy
    Nov 22, 2024 3:26 PM UTC

    technically every set contains an empty set (in any number).  a little bit like how you can multiply any number by zero and get a valid result (zero).  unintuitive, but still true.

    The Expression Guru