[Solved] Why doesn’t `array.include` [sic] show the correct output


The include method returns a boolean value. So your solution eliminates one of the steps, which is great. The old script didn’t work because you were trying to compare a boolean value to a string. You could take away your quotes on true and you would have come up with a working solution: if val == true. Hope this helps.

4

solved Why doesn’t `array.include` [sic] show the correct output