if calculation
Hi there, I have tried hard to go through the forum before posting another question regarding calculation but I can't seem to find my answer. In my template, I have two types of budget (categories): LTA and non-LTA. I want to calculate my budget (calculation) so that if the LTA type is chosen, the rate is USD0.18 per word (@number of words) and if the non-LTA type is selected, the rate is USD0.21 per word.   Would you please help? thanks a lot !!

  • Hi Alix, == "non-LTA" The string "non-LTA" must be exactly the same as in the category which ist not "LTA". An alternate:  != "LTA" (not equal to "LTA")   var type = @Types of Budget == "LTA" ? .18 : @Types of Budget != "LTA" ? .21 : 0;type * @number of words
  • Hi Rainer, thank you so much for your quick reply!!   It seems to be working for LTA type of budget but when I choose "non-LTA", budget stays at 0. Is there a sign missing maybe?   Thanks!
  • Hi Alix, it's var type = @Types of Budget == "LTA" ? .18 : @Types of Budget == "non-LTA" ? .21 : 0;type * @number of words Rainer
This question is closed.