Base rate plus tick box
Hi All,
Please forgive my ignorance in Java - I am attempting to create a calculated field which has a base value, then if a tickbox is checked, add X to the base rate (this needs to work for multiple checkboxes); what I have so far:
event.value = 0.07;
if(checkBox1.rawValue==true)
{event.value+0.015}
if(checkBox2.rawValue==true)
{event.value+0.05}
this needs to be additive so if (for example) tickbox 1,4,6 and 8 are ticked, all their denoted values will be added to the base rate.
Example:
tickbox 1 = 0.015
tickbox 4 = 0.05
tickbox 6 = 0.02
tickbox 8 = 0.01
textbox = 0.07+0.015+0.05+0.02+0.01
any help would be greatly appreciated!
Regards
