Content
Example: Check which display type is used and print the text on based on result
<?xml version="1.0" encoding="UTF-8"?> <SnomIPPhoneMenu> <If condition="$(display_type)==color_touch"> <MenuItem name="Display type:color_touch"></MenuItem> </If> <Elif condition="$(display_type)==color"> <MenuItem name="Display type:color"></MenuItem> </Elif> <Elif condition="$(display_type)==greyscale"> <MenuItem name="Display type:greyscale"></MenuItem> </Elif> <Elif condition="$(display_type)==monochrome"> <MenuItem name="Display type:monochrome"></MenuItem> </Elif> <Elif condition="$(display_type)==character"> <MenuItem name="Display type:character"></MenuItem> </Elif> <Elif condition="$(display_type)==none"> <MenuItem name="Display type:none"></MenuItem> </Elif> <Else> <MenuItem name="Not defined display type"> </MenuItem> </Else> </SnomIPPhoneMenu>
Result:
Further Information
Related articles