IF Selection Structures
Simple if-then:
IF condition statement ENDIF
Example:
IF you pay your money you take your chances ENDIF
If-then-else:
IF condition statement ELSE statement ENDIF
Example:
IF you pay your money you take your chances ELSE you keep your money ENDIF
Compound if-then-else:
IF condition statement ELSEIF condition statement ELSE statement ENDIF
Example:
IF you pay your money you take your chances ELSEIF I pay my money I take my chances ELSE we both keep our money ENDIF
Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.