Syntax question

Posted:
Wed Mar 02, 2016 10:00 am
by johngb
Does y -= 1 mean y = y - 1
and similarly
does y += x mean y = y + x
Not seen this syntax before.
Re: Syntax question

Posted:
Wed Mar 02, 2016 10:52 am
by Jerry Messina
Yes, that's how they work. The assignment operators are from VB.net (a few other languages have them also).
Re: Syntax question

Posted:
Wed Mar 02, 2016 4:08 pm
by David John Barker