It is possible in this way:
You press " and it will aappear a square where you add "your desired comment". You write the comment ------> right mouse click at the begining of the COMMENT ------->> choose INSERT MATH REGION ---------> you will write the necessary math equation that will be active for the next equations that will depend on it.
That is a comment on a sheet expression, which is standard mathcad functionality.
However the original question was about comments in a program (programmed function). In that case you can enter a string on a program line, but you cannot embed a math expression into that string.
Luc