Tuesday, June 10, 2014

If else xdoxslt function syntax -RTF

The normal behavior of if-else condition looks like

If <contion> then <value> --for true condition
else <value>
end

in RTF it can be achieved using following syntax

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

Example

<?xdoxslt:ifelse(BUDGET!=0,xdoxslt:div(ACTUAL,BUDGET),'-')?>

 

No comments:

Post a Comment