<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dale,<div class=""><br class=""></div><div class="">In line 92, write <i class="">end</i> instead of <i class="">return</i>.</div><div class="">Return is used in functions and procedures. Have a look at this page for more information: <a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml" class="">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml</a></div><div class=""><br class=""></div><div class=""><div class="">Cheers,</div><div class="">Sebastian</div></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 10 Mar 2017, at 08:49, dale zuri <<a href="mailto:dalezuri@gmail.com" class="">dalezuri@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><br class=""><div class="gmail_quote"><br class=""><div dir="ltr" class=""><div class=""><div class="">Hi ,<br class=""></div>I have been trying to reproduce the excel calculation attached here in ncl. Could someone help me to fix this bug and get the loop right? <br class=""><br class=""></div><div class="">Thank you<br class=""></div><div class="">DaleZ<br class=""></div><div class=""><br class=""><br class=""><br class=""></div>This is the error I get <br class="">fatal:syntax error: line -1 before or near <br class=""><br class="">^<br class=""><br class="">fatal:error in statement<br class=""><br class=""></div>
</div><br class=""></div>
<span id="cid:CC92858B-05D3-4416-88D7-DFE365693E58@mpimet.mpg.de"><testloop.ncl></span><span id="cid:ACCC3DE4-59AA-4BE2-84A3-48A34A372A1F@mpimet.mpg.de"><test.xlsx></span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>