Using conditionals within wml - LinkOS Compatible Zebra Printers

Article ID: 71096638

Details


 

Topic or Information

Conditionals (if condition) can be used in wml files to enhance functionality 

Applies To

Link OS Compatible Zebra Printers

Details

Conditionals increase the flexibility when using wml.

The use of conditionals within wml files is illustrated below:

Syntax:
<if condition="(sgd name) (operator) (value) ">
</if> 

Example:
<if condition="device.status = ready">
 (statements to execute)
</if> 
Can be nested:
<if condition="ezpl.media_type ! continuous">
    <if condition="ezpl.print_mode = peel off">
     (statements to execute)
    </if> 
</if> 
 

Source

Marty K