Hide and show a variable

johndanter

johndanter

Legendary Poster
Hi all

I know this is simple, but it's not working for me.

Polish Tax law states that any 0 value must not be shown. I a tax rate and when it says '0 %' they want to see blank.

So I added this and it's not working. It does blank '0 %' but it also blanks out '7 %' etc too

<?xdoxslt:ifelse(Tax_Rate_Or_N_A_ID19='0 %',Tax_Rate_Or_N_A_ID19,' ')?>

<?xdoxslt:ifelse(condition,true,false)?>

Any help please?

Thanks

John
 
I just spotted it's true and false are around the wrong way but it still doesn't work when the variable is '0 %'

<?xdoxslt:ifelse(Tax_Rate_Or_N_A_ID19='0 %',' ',Tax_Rate_Or_N_A_ID19)?>
 
Last edited:
I didn't know that <?xdoxslt:ifelse...?> is possible.

I'd use the following form:
<?xdofx:if Tax_Rate_Or_N_A_ID19='0 %' then ' ' else Tax_Rate_Or_N_A_ID19?>
 
Back
Top