If/THEN condition statements can execute a one or more commands, or scripting statements. Their execution is dependent upon on the conditional value agreement, or disagreement of the condition. A single command can be enabled when an expression resolves to a TRUE or False state. Depending upon how the comparison is condition is create, it can then execute or ignore the command or statement that follows the If/THEN conditional area.
When a single If/THEN ENDIF syntax is all that is created for handling a condition comparison, that type of condition is a single depends upon what can happen.
If/THEN ELSE ENDIF syntax is use, the conditional comparison will determine where area in the If/THEN ELSE ENDIF syntax is used.
Conditional statements can add features, or change how a process selects what happens.
Syntax: |
---|
' ------------------------------------------------------------ ' These are two primary ways an IF-THEN-ELSE process is used: ' This approach only provides changes somethings ' when the condition is TRUE ' Execute this next trip when the ' condition matches ThisValue ' This next use will execute a process when the ' condtion matches the 'ThisValue' and it will ' do something else when the value does not ' match 'ThisValue' ' This script section will run when the condition ' is a match for 'ThisValue' ' is NOT a match for 'ThisValue' ' ------------------------------------------------------------ |
Parameter: |
Description: |
---|---|
|
|
Returns: |
---|
|
Example: |
---|
|
Links: |
---|
|
See Also: |
|
Edit Time: 9/26/2020 2:43:37 PM |
Topic ID#: 376 |