Calculating Variables to provide total

V_31
Tera Expert

Hi All,

Hoping you can help with calculating some variables. The requirement is to calculate Variable A x 12 + Variable B + Variable C = Total.

 

My scripting knowledge is limited so any guidance would be much appreciated.

 

Kind regards

1 ACCEPTED SOLUTION

Rhodri
Tera Guru
var total = (varA * 12) + varB + varC;

It could be as simple as the above, but it depends where you variables are and whether you are in say a business rule or a record producer script, where are you attempting to do this?

 

You would replace your variable names with say "current.a_field_name" if in a business rule, or "producer.variable_name".

View solution in original post

2 REPLIES 2

Rhodri
Tera Guru
var total = (varA * 12) + varB + varC;

It could be as simple as the above, but it depends where you variables are and whether you are in say a business rule or a record producer script, where are you attempting to do this?

 

You would replace your variable names with say "current.a_field_name" if in a business rule, or "producer.variable_name".

Joe S1
Kilo Sage

Hello,

 

Something like this should work.

 

var total = (var_a * 12) + var_b + var_c;

 

Joe