Hi,
Is there any straightforward method to compare below two arrays in such a way that, SelectedAnswersArray[1]=correctAnswersArray[1] , SelectedAnswersArray[2]=correctAnswersArray[2] and SelectedAnswersArray[3]=correctAnswersArray[3] .
SelectedAnswersArray: {"a","c","b"}
correctAnswersArray: {"a","b","c"}
Discussion posts and replies are publicly visible
Hi, Adding to Harshit's and Stefan's comments, you can also use Appian's OOTB function 'exact', which will help you, in case you need to compare in a case-sensitive manner.a!forEach( items: merge({ "a", "B", "C" }, { "a", "b", "C" }), expression: exact(fv!item[1], fv!item[2]) )
a!forEach( items: merge({ "a", "B", "C" }, { "a", "b", "C" }), expression: exact(fv!item[1], fv!item[2]) )