- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This is a simple example, but it has the Syntax errors:
error #5082: Syntax error, found IDENTIFIER 'THEN' when expecting one of: * ) :: , ; + . - (/ [ : ] /) ' ** / // > .LT. ...
else if ((doys.gt.131.0 .and. gdd(i).le.120) then
What is wrong in this code? Thank you.
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
This is a simple example, but it has the Syntax errors:
error #5082: Syntax error, found IDENTIFIER 'THEN' when expecting one of: * ) :: ,
else if ((doys.gt.131.0 .and. gdd(i).le.120) then
What is wrong in this code? Thank you.
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
solved. one more "(" in the left. sorry, my bad.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page