How is the "ELSE" statement used in conjunction with "IF" in COBOL?

  • Declares an alternative condition for "IF" statement
  • Ends the "IF" block and starts a new one
  • Indicates the beginning of an "IF" block
  • Specifies the action to be taken when the "IF" condition is false
The "ELSE" statement in COBOL is used to specify the action to be taken when the preceding "IF" condition is false. It provides an alternative branch of code execution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *