Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what wrong with this syntax : if ... then ... else if ... endif

Status
Not open for further replies.

mchangks

Programmer
Jan 27, 2010
2
CA
Hi all,

Can you please let me know what's wrong in this syntax? Thanks.

if (doys.le.131.0) then
PhenStage = 1
else if ((doys.gt.131.0 .and. gdd(i).le.120) then
PhenStage = 2
else if ((gdd(i).le.520) then
PhenStage = 3
else if ((gdd(i).le.1670) then
PhenStage = 4
else if ((gdd(i).le.1980) then
PhenStage = 5
else if ((doys.le.301) then
PhenStage = 6
else
PhenStage = 7
endif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top