I'm trying to display a value given a code entered by a user.
Since I work with InfoPath 2007, it just support xPath 1.x, so to create a simple if-statement I constructed a rule like this:
substring(Value1, 1, (. = Code) * string-length(Value1)) // Value1 and Code is from a secondary datasource this secondary datasource is an XML ...