I defined several new commands like this:
\newcommand{\NAME1}[1]{\textcolor[rgb]{0.41,0.66,0.88}{(NAME1): #1}}
\newcommand{\NAME2}[1]{\textcolor[rgb]{0.8,0.2,0.3}{(NAME2): #1}}
I used them to add comments and I would like to know how can I add something in my preamble maybe to choose whether I want those commands to be included or not in the final pdf?
Thanks
\newifand form your definition like so:\iflong <def1> \else <def2> \fi. Now you can switch between<def1>and<def2>by using one command. – Alan Xiang Sep 08 '20 at 14:37