when i check if array contain a value that alredy exist in the array it does not work
capx: drive.google.com/open
Your array2 values contain line break (newline) in front.
use trim() expression when putting text values into the array, it will remove all invisible characters - spaces, tabs, line breaks.
Develop games in your browser. Powerful, performant & highly capable.
thank you very much .it is working now