In the following picture, I use a verbose but very pedagogical style for algorithms.

I would like to automatically use macros that act on the content of block like in the first example but with typing just the 2nd one. Juste see the MWE. This will allow to always type the same LaTeX code but to use them in different.
\documentclass[10pt,a4paper]{article}
\usepackage[vlined]{algorithm2e}
\newcommand\BlockIf[1]{\KwSty{Start If} \\ #1 \\ \KwSty{End If}}
\newcommand\BlockElseIf[1]{\KwSty{Start Else If} \\ #1 \\ \KwSty{End Else If}}
\newcommand\BlockElse[1]{\KwSty{Start Else} \\ #1 \\ \KwSty{End Else}}
\begin{document}
\begin{algorithm}[H]
\uIf{1}{\BlockIf{if...}}
\uElseIf{2}{\BlockElseIf{else if...}}
\Else{\BlockElse{else...}}
\end{algorithm}
\begin{algorithm}[H]
\uIf{1}{if...}
\uElseIf{2}{else if...}
\Else{else...}
\end{algorithm}
\end{document}
