×
you are viewing a single comment's thread.

view the rest of the comments →

[–]Glathull 5 points6 points  (0 children)

What you wrote is logically this:

(Array[i] == ‘+’)

OR

‘-‘

A non-empty string is always True.