empty callback #
Demo
- With value: Try on your phone
- Empty: Try on your phone
This example code will return two different result depending of the existence of the content of variable some_var
If called with http://server/thisexample.xml#var:some_var=hello_world
Result:
Variable received
some_var:hello_world
If called only with http://server/this.xml
Result:
No variable received
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../minibrowser_test.xsd">
<If condition="$(empty:$(var:some_var))">
<Text>No variable received<br/></Text>
</If><Else>
<Text>Variable received<br/>
some_var:$(var:some_var)</Text>
</Else>
</SnomIPPhoneText>