IIF

Is possible to make Visual Cobol code shorter similar to something like that ?

string ReturnValue = Expression == true ? TruePart : FalsePart;

Using this the code would be shorter by 4 lines.

Tags:

Parents
  • What you can do is write a Integrated Pre-processor that would expand the IIF syntax into standard Cobol code. That would mean that you code and animate the IIF statement, but actually execute the expanded code.

    For more information have a look at the Integrated Preprocessor Interface section of the documentation.

Reply
  • What you can do is write a Integrated Pre-processor that would expand the IIF syntax into standard Cobol code. That would mean that you code and animate the IIF statement, but actually execute the expanded code.

    For more information have a look at the Integrated Preprocessor Interface section of the documentation.

Children
No Data