efilnikufecin
Member
I just needed to comment out 200 lines of code for testing a new map in a script which would make the script much shorter and hopefully run faster. I have long wished their were block comments in the ash, but have not known of any. Well I was typing away, and didn't even think about what I was doing when I wrapped the 200 lines of code in this:
As you can see this is a quick way to stop blocks of previously working code from executing for the various testing that may need done for new methods without permanently deleting them from your script until you are fully sure that the new method works. It will not work unless kolmafia could run the script if false were true.
I hope someone finds the fact that I missed this possibility for so long as funny as I did, and that someone might find this idea useful.
Code:
if(false)
{
//good removed code here
}
As you can see this is a quick way to stop blocks of previously working code from executing for the various testing that may need done for new methods without permanently deleting them from your script until you are fully sure that the new method works. It will not work unless kolmafia could run the script if false were true.
I hope someone finds the fact that I missed this possibility for so long as funny as I did, and that someone might find this idea useful.