"if"-Statement based on variables within an array

I am currently working on an app and I was wondering how (or even if) I can make an “if”-Statement based on variables within an array, without first having to transfer the index to a separate variable.

Yes, you can use the “ARRAYCONTAINS()” function in the Expression Editor to see if an array contains the value of a specific variable. Let’s imagine that you have an array of text values, and you want to see if one of them contains the value in a text variable.

Here is how you would accomplish that in an “If” statement: