Illegal If without matching else

 

Hi there,

Please Check the attached image.

I get the following error when I trying to compile the code shown below.

'else' - illegal 'else' without matching 'if'


Any help would be appreciated.

Thank you.



<Decompiled code deleted>
Files:
error.JPG  116 kb
 
Do not post decompiled code. It is against forum rules and you could be banned.
 
  1. Ask the owner of the source code to give it to you or have him fix it for you.

    De-compiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to that theft.
              See also forum.MQL4.com/41864#490649

    If you post decompiled code again, you will likely be banned.

    Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because "someone uploaded it, I don't know why I can't use that"?

  2. Please do not post an image of code or the editor — it is generally too small to be read.

    Next time use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
              Messages Editor