The form in use in the first example is しないと which basically means 'unless x'. Yatte minaito wakaranai = If we don't try we won't know.
The second is しなければなりません, meaning 'have to do x'. Ikenakereba narimasen = I have to go.
The trick is understanding all the different contractions or speaking styles and narrowing it down to the root grammar structure.
__________________
thanks to Patchy ♥
|