This content has been marked as final. Show 8 replies
try this1 person found this helpful
if element is null replace with 0 else show the value ( u can show anything u needed i just took 0 as an example)
so in ur case it becomes
Thanks for replying,
What I want to do is replace it with another value, if Addressline1 is null replace it with SupplierAddressLine but for some reason any condition I try to find its not reading !='' correctly, it displays SupplierAddressLine for all records even if its not null. Below is a snippet of the xml file.
<AddressLine2>P.O. BOX 001</AddressLine2>
it should read
can you send me template and xml i can try at my side.my email:email@example.com
Thanks but it didnt work, I will send to your email. Thanks again.
forwarded updated template check and let me know.
>1 person found this helpful
Thanks but it didnt work,
AddressLine1 and Addressline1 are different tags
for you case
and it's work for me
<?xdoxslt:ifelse(AddressLine1!=’’, AddressLine1, SupplierAddressLine)?>
Thanks for the help Avinash, the following condition helped solve my problem
Thanks for replying but something was wrong with the relationship between the xml file and the template, it would not read nulls, see my reply to Avinash, had to convert to number to check for characters.