What should be the syntax of if condition
input1.txt
Group, Amount, Rate, Type, value, type2, result
1/2,abc,10,0.4,xyz,1.4
1/2,bbc,10,0.5,abc,1.6,xyz
1/2,ddd,10,0.6,xyz,1.7
1/3,abc,10,0.4,xyz,1.4
1/3,bbc,10,0.5,abc,1.6,xyz
input2.txt
Column1,Column2
abc,0.4
bbc,0.5
ddd,0.6
xyz,0.7
What I am trying to achieve is
If 1/2 = bbc and if type2 is xyz then multiply the column “value” of abc (1.4)(input1) with column2 of xyz (input2)
But if 1/3 = bbc and if type2 is xyz then multiply the column “amount” of bbc (10)(input1) with column2 of xyz (input2)
Can anyone help