Skip to main content
vijaym702296
New Participant
Aug 24, 2023 12:15 PM UTC
Question

Bug in or() function ?

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
New Participant
Aug 24, 2023 12:18 PM UTC

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

mikes0011
Brainy
Aug 24, 2023 12:30 PM UTC

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
Genius
Aug 24, 2023 12:37 PM UTC

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.