Comparing 2 arrays with strings

Good afternoon, can you compare 2 arrays? I found an add-on that can compare sums of 2 arrays. But to compare all strings in 1 action, no

good afternoon and welcome to the gdevelop forums,
so by comparing two arrays do you mean to check if the two arrays have identical values?

Hello, thank you. Yes, I would like to compare in terms of:
Array_1
Value1=“Text”
Value2=“Text”
Value3=“Text”

Array_2
Value1=“Text”
Value2=“Text”
Value3=“Text”

And so that you can compare all these 3 values ​​​​with each other for full compliance.

P.S How to compare them manually each cell, I know. I just thought suddenly there is a similar expression in 1 condition

You could use this:
image
You’ll need to replace actual numbers with a variable, and maybe use dynamic access:
https://wiki.gdevelop.io/gdevelop5/all-features/variables#accessing_child_variables_dynamically

2 Likes

Awesome! Thank you. I did not notice these functions under the + sign at all