This site requires JavaScript, please enable it in your browser!
Greenfoot back
suzbo
suzbo wrote ...

2018/4/10

How does this if statement work?

suzbo suzbo

2018/4/10

#
if(xo<(posx+ro*rx/r))xo++;
danpost danpost

2018/4/10

#
suzbo wrote...
(TITLE) How does this if statement work? if(xo<(posx+ro*rx/r))xo++;
It increments xo on the condition its value is less than the evaluated expression posx+ro*rx/r.
suzbo suzbo

2018/4/10

#
thank you - that was most helpful
You need to login to post a reply.