#How does one use an if statement where this equals "this or that"? Examples ahead...
1 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
What if A goes to Z meaning, how can I make that more compact?
what
that seems like a long thing
if (var1 == A || var1 == B || var1 == C || var1 == D || var1 == E || var1 == F)
Doesn't this look a bit goofy?
it does
you can also do another thing
let array = [A, B, C, D, E, F]
if(array.includes(var1)) console.log('hello! :D')
hello! :D
:D
amongE
o.o

Ah, ok yes, that .includes looks not as goofy

Thanks, that's what I was looking for