How to use Format-number finction with if else condition in rtf
I have a requirement to display the number value in + or -ve format. So If I use below condition then it display all the values(including -ve values) in +v manner.
<?format-number(CF_TOTAL,"### ,###.00")?>
So Now I want to try it with if else condition.
Could you plz guide me if below condition is correct or not?
<?xdofx:if CF_TOTAL>0 then <?format-number(:CF_TOTAL,"### ,###.00")?> elsif <?format-number(:CF_TOTAL,"-### ,###.00")?> end if?>
Thanks,
Joohi