Skip to main content
dinesha5713
November 12, 2024
Solved

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

  • November 12, 2024
  • 3 replies
  • 0 views

The Output is True ,why

    Best answer by stefanhelzle0001

    Good question, but at least it is documented.

    https://docs.appian.com/suite/help/24.3/fnc_set_contains.html#check-for-a-null-value

    3 replies

    stefanhelzle0001
    November 12, 2024
    gayatria0439
    November 22, 2024

    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
    November 22, 2024

    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.