# Issue with parsing multiple items with "="

**URL:** <https://discourse.julialang.org/t/issue-with-parsing-multiple-items-with/53430>\
**Category:** General Usage\
**Created:** [January 16, 2021, 11:02am UTC](https://discourse.julialang.org/t/issue-with-parsing-multiple-items-with/53430 "2021-01-16T11:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/herm/32/14268_2.png) [@herm](https://discourse.julialang.org/u/herm)\
**Post date:** [January 16, 2021, 11:02am UTC](https://discourse.julialang.org/t/issue-with-parsing-multiple-items-with/53430/1 "2021-01-16T11:02:28Z")

</div>

There seems to be issue with the parsing of complex expressions with multiple items in the equal, the following code works  
for K=2:NZ1  
for J=2:NY1  
for I=2:NX1  
HXS[I,J,K],HYS[I,J,K],HZS[I,J,K]=  
HXS[I,J,K]-sum(ygradkernel[0,-1:1,0].\*EZS[I,J-1:J+1,K])\*HCRLY2[IDONE[I,J,K]]+  
sum(zgradkernel[0,0,-1:1].\*EYS[I,J,K-1:K+1])\*HCRLZ2[IDONE[I,J,K]],  
HYS[I,J,K]-sum(zgradkernel[0,0,-1:1].\*EXS[I,J,K-1:K+1])\*HCRLZ2[IDTWO[I,J,K]]+  
sum(xgradkernel[-1:1,0,0].\*EZS[I-1:I+1,J,K])\*HCRLX2[IDTWO[I,J,K]],  
HZS[I,J,K]-sum(xgradkernel[-1:1,0,0].\*EYS[I-1:I+1,J,K])\*HCRLX2[IDTHRE[I,J,K]]+  
sum(ygradkernel[0,-1:1,0].\*EXS[I,J-1:J+1,K])\*HCRLY2[IDTHRE[I,J,K]]  
end  
end  
end

The following code does not work (only change in position of +)  
for K=2:NZ1  
for J=2:NY1  
for I=2:NX1  
HXS[I,J,K],HYS[I,J,K],HZS[I,J,K]=  
HXS[I,J,K]-sum(ygradkernel[0,-1:1,0].\*EZS[I,J-1:J+1,K])\*HCRLY2[IDONE[I,J,K]]+  
sum(zgradkernel[0,0,-1:1].\*EYS[I,J,K-1:K+1])\*HCRLZ2[IDONE[I,J,K]],  
HYS[I,J,K]-sum(zgradkernel[0,0,-1:1].\*EXS[I,J,K-1:K+1])\*HCRLZ2[IDTWO[I,J,K]]  
+sum(xgradkernel[-1:1,0,0].\*EZS[I-1:I+1,J,K])\*HCRLX2[IDTWO[I,J,K]],  
HZS[I,J,K]-sum(xgradkernel[-1:1,0,0].\*EYS[I-1:I+1,J,K])\*HCRLX2[IDTHRE[I,J,K]]  
sum(ygradkernel[0,-1:1,0].\*EXS[I,J-1:J+1,K])\*HCRLY2[IDTHRE[I,J,K]]  
end  
end  
end

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [January 16, 2021, 11:23am UTC](https://discourse.julialang.org/t/issue-with-parsing-multiple-items-with/53430/2 "2021-01-16T11:23:21Z")

</div>

Please put you code in code blocks using ``` above and below the code, then we can read it 🙂

It also helps if it’s indented - 4 spaces is the standard.

But it looks like you have moved the `+` to the start of a new line - and that just doesn’t work in Julia syntax. You need to leave it at the end of the previous line to indicate that the line continues.

---

<div class="post-metadata">

**Author:** ![herm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/herm/32/14268_2.png) [@herm](https://discourse.julialang.org/u/herm)\
**Post date:** [January 16, 2021, 12:47pm UTC](https://discourse.julialang.org/t/issue-with-parsing-multiple-items-with/53430/3 "2021-01-16T12:47:44Z")

</div>

Thank you good to know.
