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

2015/6/8

Method that adds code?

choxx choxx

2015/6/8

#
Hi just a little question. I recently tried to code some stuff, but now I need a method that changes the code or add some lines of code when a special if statement is true. Thanks a lot.
azazeel azazeel

2015/6/8

#
read this first and make the question as clear as possible
davmac davmac

2015/6/8

#
In general, code can't change code. You however can set a variable to some value inside the "if" statement, and test that variable in another part of the code (using another "if" statement); perhaps that is all you really need.
You need to login to post a reply.