Description
-----------
This module adds a computed value component to each webform node and is
an interface to perform basic value assignment (or computation) of a
component value based upon the value of one other component.

This component is always disabled because it is always calculated and therefore
cannot be edited, nor receive a conventional default value.

Calculations fire on hook_webform_submission_presave() and these components cannot
be used to affect components or conditionals during the completion of a multi-step
form.

Computed components are processed in form weight sequence, meaning that Computed
Component A may be used in the computation for Computed Component B.  Complex
calculations and/or complex conditions require many computed components in
'chains'.

Three compute methods available:
a) CALCULATE
Provides a simple assignment of the result of a calculation using some basic
arithmetic operators:
  addition;
  subtraction;
  multiplication;
  division;
  modulus;
  calculate X percentage of a value;
  increase a value by X percent;
  decrease a value by X percent;
  raise a value to the power of X;
  concatenate string values by specifying any of the math operators and two non-numeric values.

b) SWITCH-CASE
--------------
Provides simple switch-case-default value assignment to this component.

c) IF-THEN-ELSE
---------------
Provides value assignment as either a direct assignment, or assign the result
of a calculation using some basic arithmetic operators:
  addition;
  subtraction;
  multiplication;
  division;
  modulus;
  calculate X percentage of a value;
  increase a value by X percent;
  decrease a value by X percent;
  raise a value to the power of X;
  concatenate string values by specifying any of the math operators and two non-numeric values.

* *  C A V E A T S  * *
-----------------------
Expect unexpected results:
  when you delete components specified in conditions or calculations;
  when you move a computed component up or down in the form tree;
  when the specified condition or calculation criteria are otherwise logically faulty.

Currently does not support date, grid, select multiple, or time components.

Decimal point is ALWAYS period (.) and there are NEVER any thousands separators.

The only number formatting supported is the number of decimal places.  Allowing folk to play with
alternate decimal points and/or thousands separators starts creating headaches around CSV downloads,
inability to use the answer of one component in the calculation of another because the value is no
longer perceived to be numeric, etc. etc.

Installation
------------
1) Ensure that you have the Webform module installed and enabled;
2) Place the module folder in your sites/all/modules folder;
3) Activate the Webform Computed Component module via admin/build/modules;
4) Activate the Computed component via admin/settings/webform.

Author
------
vernond (http://drupal.org/user/799830)
