1

I am new to the Latex code. I want to write the below formula in Latex

GenaralFormula

Thank you!!

Fusdev
  • 119
  • 1
  • 6
  • Does this answer your question? [Two statements next to curly brace in an equation](https://stackoverflow.com/questions/4027363/two-statements-next-to-curly-brace-in-an-equation) – MattAllegro Jun 28 '21 at 20:58

1 Answers1

1

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}

enter image description here