Skip to main content
vijaym702296
August 24, 2023
Question

Bug in or() function ?

  • August 24, 2023
  • 3 replies
  • 1 view

I am working on a project where I want to use or() function. While using the or() function I found one bug when you write any word starting with the letter "T" in the or() function you will get a true return and for any other word then "T" returns false. I am adding some images for more clear discussion.

in this, I used random words starting with the letter "T"

using words other than the "T"

3 replies

vijaym702296
August 24, 2023

[mention:ef600ff8f5d2497eb2def2126dc89484:e9ed411860ed4f2ba0265705b8793d05] can you please help me in this

mikes0011
Brainy
August 24, 2023

or() evaluates a list of boolean values.  Looks like when a string is cast as boolean, if it starts with "t" it'll cast as TRUE.

This isn't really an "or() bug" as much as it is a funny corner case in Appian's primitive type typecasting.

The Expression Guru
mathieud0001
Brainy
August 24, 2023

My guess would be that it somehow interprets "t" as being true. If you cast anything starting with "t" to a boolean, it will evaluate to true.

Nevertheless, it could be considered a bug but at the same time, you shouldn't be passing strings as arguments to that function.