I have researched this extensively, but cannot find anything in this regard.
If I were to use the if statement as a check and you had to write something along these lines:
if(split[lengthsplit + 1] == "=" && split[lengthsplit - 1] == "=")
Can I write above, as shown below, with the same result:
if(split[lengthsplit +- 1] == "=")
I donβt see the result of this and am wondering if he will add 1 in this case and remove it, or if he tries both scenarios first to give the opportunity to compress the validation to get rid of Boolean operators to some extent.
If so, maybe I could use split [lengthsplit + -] instead?
source share