I want to change all the values of a variable to false(in this case) Where I have something like this:
Element0 : true
Element1 : true
Element2 : true
Element3 : false
Element4 : true
…
and there you keep going, so for this I would like to know how to set all of this to false, something like this:
example[0-50] = false;
I already know another way to do it but I don't want something so complex that is this:
for(var i = 0;i < 50; i++){
example *= false;*
*}*
*```*
*<p>But as I say I want something more easy like the first example.</p>*
*<p>Note: I want it to work also with other kind of variables like integers.</p>*
Yep. And they aren't that "complex". Use them a bit and you'll find them easy enough to use.
– anon73820239