BIP If else statements

tkehoe

Member
Hi,

I'm designing a template that uses customer bank account to determine what address to use, MICR number as well as logos etc.
I want to put the conditions on data variables as below.
What's happening is sometimes it's printing the MICR number in the Address field.
Is there a way to fix this besides using choose statements?

1st section
Data variable = Address
<?xdofx:if BIPCustBankAcct_55_ID135 = 123456 then
Company Name
1 Main St, Anytown
end if?>

2nd section
Data variable = MICR
<?xdofx:if BIPCustBankAcct_55_ID135 = 123456 then
'c'|| Payment_Item_String___Local_ID41|| 'c ' || 'A34033D002A 00620D14 '
end if?>

Thanks!
 
Hello,
I guess you could try like this
variables works like this: 1st step is to set it up w/ this <?xdoxslt:set_variable($_XDOCTX, 'Address', value)?> then you can get the result w/ this:
<?xdoxslt:get_variable($_XDOCTX, 'Address')?>

for the if-then-else
<?xdofx:if BIPCustBankAcct_55_ID135 ='123456' then concat('C',Payment_Item,'C','A34033D002A 00620D14') else '' end if?>
 
Back
Top