ComputedCondition
The ComputedCondition column on a container field defines the computation to perform for a Computed control.
The ComputedCondition column specifies the operations and values to use to compute a Computed control value. Table values can be referenced via their name. Additionally, the values for e and pi can be referenced using E and PI.
Supported Operands and Their Functions by Type
- All Types:
The following operands are supported by all types:( ), ?, :, ==, !=, +, <, >, <=, >=.
?and:can be used together for ternerary computations such asNumberValue == 5 ? "The number is 5" : "The number is not 5".
To chain computations together that result in boolean values,ANDandORcan be used. - Numbers:
In addition to the operands listed above, the following operands are supported for numeric values:-, *, /.
Example:
To multiply a number stored in the column named "NumberValue" by 5, the ComputedCondition should be set to:NumberValue * 5. - Strings:
For strings + can be used to append two strings together, whereas < and > can be used to tell if a string comes before or after the other string in alphabetical order. Example:
To add a string stored in a column namedStringValueto the beginning of the string"test", the ComputedColumn should be set to:StringValue + "test". - Booleans:
In addition to the operands listed above, the following operands are supported for booleans:-, *, /, AND, OR. For booleans+, -, *, /are computed withtrueas1andfalseas0.
Example:
To see ifBooleanValue1andBooleanValue2are bothtrue, the ComputedColumn should be set toBooleanVal1 AND BooleanVal2.
Controls
The ComputedCondition column applies to the following controls: