Results of If and Else both show up.
I'm reformatting a field called Description___Local_ID20. The value of the field is:
VEINTINUEVE MIL SEISCIENTAS TREINTA Y UNA CON 44/100 *******************************
I have the following code to re-format the output:
<?xdofx:if contains(Description___Local_ID20, 'Y UNA CON')?>
<?xdofx:'('||replace(replace(replace(replace(Description___Local_ID20, 'UNA', 'UN'), 'CON', 'PESO'), '*', ''), 'CIENTAS', 'CIENTOS')||'M.N.'||')'?>
<?else?>
hello
The result of the code is:
(VEINTINUEVE MIL SEISCIENTOS TREINTA Y UN PESO 44/100)hello
Why does the output show both what is in my If statement and what is also in the Else statement? 'hello' should not be showing up. Where am I going wrong with the syntax?