How to write this in LaTeX:

y = {1 if a >b
     0 if a <b

How to make the big bracket that contains both and defines the function y?

marked as duplicate by Werner, egreg, percusse, dustin, Mico Aug 28 '14 at 19:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.