Skip to content
← Back to Community
this does not work
Profile icon
Emile2021coding

hi comunity
when i tried this code
i couldnt make multiple commands because the first one only works
can someone fix this
(password of the code(just to start if it works) : IKHO VANI DAKL)

Voters
Profile icon
Emile2021coding
Comments
hotnewtop
Profile icon
lajbel

you could instead of verifying the command, verify if the whole set has any command, this can be achieved for example separating each word in an array

Profile icon
Emile2021coding

@lajbel what do you mean with verify sorry but im bad at coding

Profile icon
lajbel

@emiledebruycker if

you can make this

const commandArr = command.split(" "); // if the command is hi hello, the array is ["hi", "hello"] if(command.includes("hi") { // execute this } if(command.includes("hello") { // execute this }
Profile icon
Emile2021coding

@lajbel THAT WORKER THATNK YOU SO MUCH

Profile icon
lajbel

@emiledebruycker np, you can mark me as the answer!

Profile icon
Emile2021coding

btw dont click the link its rickroll