| PIC PRESS HELP | If... Then... Macro |
This macro was added to make a programmer new to the PIC Programming language feel more at home. Whilst more other languages such as BASIC use If-Then-Else routines, it is missing from the PIC assembly language, so we decided to make an If-Then-Else macro which translates the concept of an If-Then-Else routine into PIC code.
With this macro the IF can refer to three possible decisions:
Then whatever code you enter in the THEN box will be executed if the IF statement is TRUE, and whatever you enter in the ELSE box will be executed if the IF statedment is FALSE. You can choose to have no ELSE statement by selecting the appropriate tab which shows an ENDIF statement in the ELSE box. The If-Then Macro form is shown below: