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

2015/5/13

A question about Frames

akkartik akkartik

2015/5/13

#
I just came across (removed by admin), which says:
Comments are generally used in programming for two purposes. One is to actually add a text comment to some code, to explain what is going on or apologise to the next programmer for the code you wrote. The other purpose is to disable some code. It's interesting that using comments for this is so firmly embedded that we tend to refer to "commenting code out" rather than "disabling code" or "turning off code". The fact that you use comments to disable code is a historical accident; the better thing to do is to have a way to just directly disable code.
It then proceeds to show an entire if frame being disabled. My question is: what if I want to disable just the 'if', making the frame inside it execute unconditionally? That's something I do fairly often in free text. Is there an easy way to do that?
davmac davmac

2015/5/13

#
Please don't discuss the preview here, as it's not for general use. The Greenroom is the appropriate forum. Thanks
akkartik akkartik

2015/5/13

#
I have no idea what or where the greenroom is. But whatever.
You need to login to post a reply.