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
If SomeCondition = ThisValue THEN

  '  Execute this next trip when the

  '  condition matches ThisValue
  Make-This-script-Happen
ENDIF
'  ------------------------------------------------------------

'  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'
If SomeCondition = ThisValue THEN

  '  This script section will run when the condition

  '  is a match for 'ThisValue'
  Make-This-script-Happen
ELSE
  '  This script section will run when the condition

  '  is NOT a match for 'ThisValue'
  When-NOT-ThisValue-Make-This-Other Stuff
ENDIF

'  ------------------------------------------------------------

 

Parameter:

Description:

 

 

 

Returns:

 

 

Example:

 

 

Links:

 

See Also:

 

 


Edit Time: 9/26/2020 2:43:37 PM


Topic ID#: 376

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software