# Multiple lines one side of equation with a Curly Bracket [duplicate]

I am trying to write an equation that looks like this, everything should be left aligned on the right hand side.

I am using the following code to write this equation.

  $$D_{it} = \Bigg\{if \ bank \ i \ issues \ ABS \ at \ time \ t \\ 2 \ if \ bank \ i \ issue \ CBs \ at \ time \ t \\ \ 0 \ otherwise$$


I am putting \\ for a new line but it does not work. Please guide how I can write the desired equation.

## marked as duplicate by Werner equations StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Nov 3 '16 at 17:30

• You are looking for the cases environment of the amsmath package. Also the \text{} macro for setting text inside math mode. – Steven B. Segletes Nov 3 '16 at 17:28

Use the cases environment, like this.
\documentclass{article}
$$D_{it} = \begin{cases} 1 & \text{if bank i issues ABs at time t}\\ 2 & \text{if bank i issues CBs at time t}\\ 0 & \text{otherwise} \end{cases}$$

• @AhmedArif Remove the star after equation. – gernot Nov 3 '16 at 17:34