Comments in RM

Hi all,
Is there a way to add comments into RM? I like to comment my code so in a few months (after killing off a few brain cells :grinning:) I know why I did something.
Thanks

There is a "Notes" section at the bottom of the rule intended for more or less this purpose. There is no per-line or block comment functionality.

Ok, thanks.
@bravenel, can I humbly submit this is a future feature request? RM is so powerful that being able to add comments inline would be helpful especially as the rules get more complex. Thanks

While I like the idea, it’s been asked for before. Bruce has said no previously.

1 Like

you could make a local string variable and save the comments to it for each needed line.. I'm not sure what the text limit is for the string variable.

I am not sure this is what you want, but probably the closest thing other than the notes section.

I'll give that a try, thanks for the feedback!

You could also use a log command. Not perfect but good enough although of course it will clutter your log stream.

Yep, look up two posts. :grin:

Oh yeah, woops :grin:

1 Like