We can use if condition directly by writing <?IF?> condition <?END IF?>
<?xdofx:if element_condition then result1 else result2 end if?>
else
if INVOICE_AMOUNT <3000 then ’Lower’
else
’Equal’
end if?>
Syntax:
<?xdoxslt:ifelse(condition,true,false)?>
Example:
Ans: No 20 and 21 are not equal
Using OR Condition in XML RTF Template:
<?if:XMLfield=value1 or XMLfield=value2?> display value <?end if?>
Example:
<?if:sum(AVALUE)=0 or sum(BVALUE)=0?>0<?end if?>
Recent Comments