- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 08:31 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 08:54 AM
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".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 08:54 AM
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".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 08:54 AM
Hello,
Something like this should work.
var total = (var_a * 12) + var_b + var_c;
Joe