\doxysection{Comments}
\hypertarget{comments}{}\label{comments}\index{Comments@{Comments}}
Comments are allowed in Qore scripts; line comments are preceded by a hash {\ttfamily "{}\#"{}}, and block comments are made C-\/style, ex\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{comment}{\#\ this\ is\ a\ line\ comment}}
\DoxyCodeLine{/*\ }
\DoxyCodeLine{\ \ \ this\ \textcolor{keywordflow}{is}\ a\ block\ comment\ }
\DoxyCodeLine{*/}

\end{DoxyCode}


For line comments, all text following a hash until the end-\/of-\/line character {\ttfamily "{}\textbackslash{}n"{}} is considered a part of the comment.

For block comments, all text in the block comment is ignored by the parser.

Here is an example Qore script containing comments\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{comment}{\#!/usr/bin/env\ qore}}
\DoxyCodeLine{\textcolor{comment}{\#}}
\DoxyCodeLine{\textcolor{comment}{\#\ these\ are\ line\ comments}}
\DoxyCodeLine{\textcolor{comment}{\#\ another\ line\ comment}}
\DoxyCodeLine{}
\DoxyCodeLine{/*}
\DoxyCodeLine{\ \ \ -\/-\/-\/\ this\ text\ \textcolor{keywordflow}{is}\ \textcolor{keywordflow}{in}\ block\ comments}
\DoxyCodeLine{\ \ \ print(\textcolor{stringliteral}{"{}hello"{}});\ <-\/\ this\ won\textcolor{stringliteral}{'t\ get\ executed\ }}
\DoxyCodeLine{\textcolor{stringliteral}{\ \ \ -\/-\/-\/\ because\ it's\ in\ the\ block\ comment}}
\DoxyCodeLine{\textcolor{stringliteral}{*/}}

\end{DoxyCode}
 