Page 1 of 1

Syntax question

PostPosted: 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

PostPosted: 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

PostPosted: Wed Mar 02, 2016 4:08 pm
by David John Barker
A bit more information can be found here

http://www.tutorialspoint.com/vb.net/vb.net_operators.htm