Search code examples
rtml

How do you comment your RTML code?


<rant-mode> Have you ever seen a programming language that does not allow to add comments to the code? Welcome to the world of RTML (may it burn in hell)! </rant-mode>

Question

What is the best technique (if any) you've adopted to comment your RTML code?

Thank you!


Solution

  • To create a comment in RTML, click on your template, then New, and in the textbox that says Simple, type (in quotes) your comment.

    "**************** My comment and stuff ******************"
    

    If you want to comment out a piece of code, insert your code after a MULTI which groups multiple RTML statements and then a WHEN nil. Everything after the WHEN nil will never be executed.

    WHEN nil
        MULTI
            TEXT @a-random-variable