dimanche 23 juin 2019

IF Statement on array if it has one or more truthy value

Here's a quick question I'd like to ask. I have this array, a simple [false, false, true, false, true]. If one (or more) of these values are true, then I'd like to pass the virtual IF statement. If there is none, I'd like to fail the statement.

I don't have any code to show you further.

Hopefully you can help me with this, thank you. ~Q

Aucun commentaire:

Enregistrer un commentaire