Check if all items in array are matched

Do you have any idea on how to check if all values in array matched in appian?

example

arrayValue = {true,true,true}

returns "All Elements are Same"

else returns "Not the same"

  Discussion posts and replies are publicly visible