I am new to the Latex code. I want to write the below formula in Latex
Thank you!!
You can use the cases
environment:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
x = \begin{cases}
0 & \text{true}\\
1 & \text{false}
\end{cases}
\]
\end{document}