I am trying to write a nested if pseudo code on latex put the following error is appearing:
LaTeX Error: Command \NOT already defined.
\begin{algorithm}[!htbp]
\begin{algorithmic}
\STATE \textbf{Step 5}: Compare each sentence Scores and CFs to determine the class it belong to:
\begin{ALC@g}
\IF {(FR\_Score[sentence] $>$ NFR\_Score[sentence])}
\STATE Class[Sentence] = FR
\ELSIF{(FR\_Score[sentence] $<$ NFR\_Score[sentence]) }
\STATE Class [Sentence] = NFR
\ELSIF {(FR\_Score[sentence] == NFR\_Score[sentence])}
\begin{ALC@g}
\IF{(FR\_CF[sentence] $>$ NFR\_CF[sentence])}
\STATE Class[Sentence] = FR
\ELSIF {(FR\_CF[sentence] $<$ NFR\_CF[sentence])}
\STATE Class[Sentence] = NFR
\ELSIF {(FR\_CF[sentence] == NFR\_CF[sentence])}
\STATE Class [Sentence] = Nan
\end{ALC@g}
\end{ALC@g}
\end{algorithmic}
\end{algorithm}
update after removing \begin{ALC@g} ..\end{ALC@g} from the code and adding \ENDIF the problem is solved but a 0= symbol is steel appear at the end of the algorithm


\begin{ALG@g}and\end{ALG@g}? I told you not to.\ENDIF).