IF `ng_r_nz GE 1` THEN ;\
let wk_new=IF sie_wk THEN sie_wk ELSE (`nz_spvl`) ;\
ELIF `ng_r_zo GE 1` TEHN ;\
let wk_new=IF sie_wk THEN sie_wk ELSE (`zo_spvl`) ;\
ELSE ;\
let wk_new=IF sie_wk THEN sie_wk ELSE (`ms_spvl`) ;\
ENDIF ;\
**ERROR: command syntax: Entire ELIF statement should be "ELIF expr THEN"
ELIF 0 TEHN
What did I do wrong?
The following link: http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/IF
provides the following example:
IF `i LT 3` THEN
GO option_1
ELIF `i LT 6` THEN
GO option_2
ELSE
GO option_3
ENDIF
Thanks,
--- Peng
Ge
Peng, PhD
Research Scholar
Cooperative
Institute for Climate and Satellites - NC (CICS-NC)/NCSU at
NOAA’s National Centers for Environmental Information (NCEI)
Center for Weather and Climate (CWC)
151 Patton Ave, Asheville, NC
28801
+1 828 257 3009; ge.peng@xxxxxxxx
ORCID: http://orcid.org/0000-0002-1986-9115
Following CICS-NC on Facebook