Can someone please simplify the following 2 lines of code.

Come on guys, I am not that much of a beginner in coding, but I only thought I was discovering a new way of an 'if-else condition' syntax and maybe also a new conditional increment format that I have not seen before, but as correctly described by UKHeliBob, these were no more but some un-necessary confusing left-overs .