# Strange behaviour with if-else-Statements

**URL:** <https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, bug\
**Created:** [September 25, 2020, 2:40pm UTC](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266 "2020-09-25T14:40:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GerhardTotschnig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardtotschnig/32/215516_2.png) [@GerhardTotschnig](https://discourse.julialang.org/u/GerhardTotschnig)\
**Post date:** [September 25, 2020, 3:40pm UTC](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266/4 "2020-09-25T15:40:12Z")

</div>

It seems, as tomerarnon mentioned, a + in the beginning of a line in Julia does not represent a continuation of the line before. See:

> [@Best practice for avoiding line break bugs in long expressions](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475):
>
> I had a very frustrating debugging session yesterday. My code was running without errors but producing incorrect results. It took at least two hours for me to find this problem: x = a + really \* long + + (and + complex) / expression + - that \* (spans - several) + lines \* of / code Can you spot the error? The problem is that the expression terminates after the third line because I forgot to hang a trailing + sign there. The fourth line evaluates without error but doesn’t do anything…

Parentheses (or + at the end of the line) allows Julia to recognize the multiline code.

---

_[View the full topic](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266)._
