[verb て-form] + は、[sentence (bad result)] [i-adj 〜い → 〜くて] + は、[sentence (bad result)] [na-adj] + では、[sentence (bad result)] [noun] + では、[sentence (bad result)] [verb て-form] + は + [verb ます-stem]、[verb て-form] + は + [verb ます-stem]
ては means "if" when what follows is bad: a problem, something you can't do, a judgment that it won't work. It goes on the て-form, so an い-adjective becomes 〜くて, and a verb whose て-form ends in で gives では. A な-adjective or a noun takes では directly.
In speech, では contracts to じゃ and ては to ちゃ.
Two verbs joined with ては, often said twice over, describe something that happens again and again: A, then B, then A again. The second verb is usually in the ます-stem.
These go beyond a single conditional.
ては can also describe a habit: each time A happens, B follows.