Indicator function in Latex

Before \begin{document}

\usepackage{bbm}

and in the text:

\mathbbm{1}{ Something }

Source.