Difference between revisions of "TUFLOW Message 0040"

From Tuflow
Jump to navigation Jump to search
(Created page with '{{TUFLOW_Message |tuflow_message=ERROR 0040 - No "End If" specified for "If Scenario == ",a, |alt_msg=NA |type=ERROR |message_desc=???? |suggestions=???? |discussion_page=* [...')
 
Line 3: Line 3:
 
|alt_msg=NA
 
|alt_msg=NA
 
|type=[[ERROR]]
 
|type=[[ERROR]]
|message_desc=????
+
|message_desc=No <font color="green"><tt>End If</tt></font> command was found to close of the <font color="green"><tt>If Scenario == </tt></font> block.
|suggestions=????
+
|suggestions=Add the <font color="green"><tt>End If</tt></font> command where it is missing.
 +
 
 +
'''Tip:''' When using commands such as <font color="green"><tt>If Scenario ==</tt></font> indent the commands within the block that follows as this makes it much easier to interpret which commands apply to which event definition.  For example:
 +
 
 +
<tt>
 +
If Scenario == 1974
 +
:Read GIS Shape == mi\2d_zsh_road_remove.mif
 +
Else If Scenario == exg | OpA
 +
:Read GIS Shape == mi\2d_zsh_road_exg.mif
 +
Else If Scenario == OpB
 +
:Read GIS Shape == mi\2d_zsh_road_OpB.mif
 +
End Define
 +
 
 +
Other examples of commands that benefit from indenting are:
 +
* <font color="green"><tt>Start 2D Domain ==</tt></font>
 +
* <font color="green"><tt>If Scenario ==</tt></font>
 +
 
 
|discussion_page=* [[Talk:TUFLOW Message 0040|Discuss Message 0040]]
 
|discussion_page=* [[Talk:TUFLOW Message 0040|Discuss Message 0040]]
 
|link3=''
 
|link3=''

Revision as of 11:17, 10 August 2011

TUFLOW Message
ERROR 0040 - No "End If" specified for "If Scenario == ",a,

Alternate Message
NA

Message Type
ERROR

Description
No End If command was found to close of the If Scenario == block.

Suggestions
Add the End If command where it is missing.

Tip: When using commands such as If Scenario == indent the commands within the block that follows as this makes it much easier to interpret which commands apply to which event definition. For example:

If Scenario == 1974

Read GIS Shape == mi\2d_zsh_road_remove.mif

Else If Scenario == exg


Up
Go-up.png 0xxx Messages