environment:
\documentclass{beamer}
There is an idea that create a new CS, for example \modela like this:
\modela{enumerate}{#2}
would expand as follow:
\begin{frame}
\begin{enumerate}
#2
\end{enumerate}
\end{frame}
while
\modela{description}{#2}
can be expanded as:
\begin{frame}
\begin{description}
#2
\end{description}
\end{frame}
Any approach to fulfill this command by conditional command instead of the \if command sequence, because of not only two options? Thanks very mcuh!
\newcommand{\modela}[2]{\begin{frame} \begin{#1}#2\end{#1} \end{frame} }
? Welcome to TeX.SE!