beautypg.com

Ifdef – Zilog Z8F0130 User Manual

Page 351

background image

UM013037-1212

IFDEF

Zilog Developer Studio II – Z8 Encore!

User Manual

327

.

.

.

ELIF ABC ; process code body 2 if XYZ=3 and ABC is not 0

.

.

.

.

.

.

ELSE ; otherwise process code body 3

.

.

.

.

.

.

ENDIF

IFDEF

Checks for label definition. Only a single label can be used with this conditional. If the
label is defined, the result is true; otherwise, the result if false.

Syntax

IFDEF

<label>

<code_body>

[

ELSE

<code_body>]

ENDIF

Example

IFDEF XYZ ; process code body if XYZ is defined

.

.

.

<

Code Body

>

.

.

.

ENDIF