Commenting Out Rule and TI Lines
Every wondered how to comment out a Rule or Turbo Integrator process in TM1? Well today I needed a method of commenting out text from a rule and, although I have done it hundreds of times, a brain freeze (call it memory degradation) hit. Anyway a quick check on the internet and I then had one of those “doh” moments.
How to Comment Out a Line of Text from a Rule or Process
To comment out a line of code in a tm1 rule or TI process use a # (a hash ora pound sign if you’re from North America) at the beginning of your text and bingo, it is not assessed in either the rule or process.
And in case you’re reading this wondering what do I mean by comment out? Well, in normal speak that just means that you are going to make that line of text not count when the rule or TI process is run.
Why Would I Remove Text from a Rule or Process?
One of the little things that make a tile or TI so much more readable is having annotation on the rule or process itself, explaining in plain English what the following bit of code does. Using a # is a fantastic way of adding this sort of inline annotation or documentation to your TM1 rules or TI processes.