Content

Page tree

This example code will return two different results depending of the existence of the content of variable some_var

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneText>
	<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>


Result if called with http://server/thisexample.xml#var:some_var=hello_world :


Result if called only with http://server/thisexample.xml :