-
Check if Variable is equal to one of multiple values. (ex : 1 OR 4)
Hello ! I have a menu and need my expression to check if its value is, for example, 1 OR 4 OR 7.
Unfortunately, none of the methods I’ve seen online work, which are :
if(menu == 1|| 4 || 7)and
var array = [1,4,7];
if(array.includes(menu))None of these give me a true result when menu is equal to one of them, all I have are false returns. Do you have any ideas?
Sincerely, Lucas