Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does a conditional work (the 88 thing)?

Conditionals

How does a conditional work (the 88 thing)?

by  GC1CEO  Posted    (Edited  )
An example of a conditional would be:

05 STORE-CODE PIC XX.
88 BOSTON VALUE 01.
88 NEW-YORK VALUE 02.
88 TORONTO VALUE 03.

In this example, when you get down to a usual IF statement, without using a conditional you might say something like:

IF STORE-CODE = "01"

However using a conditional, you could do the exact same thing by typing:

IF BOSTON

This makes a lot easier when it comes to ever yes/no questions in a program or where there is a long list of different options (easier to create a name for each option versus remembering/writing down the values and what they mean).
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top