We are attempting to build a rule to populate a record field. We would like to be able to accomplish the following:
if (present(lookup (field 1,
condition 1 )) &
(size (lookup (field 1,
condition 1))) <= 9,
lookup (field 1,
condition 1),
input card 2 value )
We basically want to use one value if the size of field 1 is 1 to 9 inclusive and use a different value if size is 0 (field 1 not present) or it is greater than 9 in size.
We are having problems getting the logic to work. I am thinking that it is do to the multiple lookups against the same field and condition.
Any thoughts/suggestions on a work around to accomplish the task?
if (present(lookup (field 1,
condition 1 )) &
(size (lookup (field 1,
condition 1))) <= 9,
lookup (field 1,
condition 1),
input card 2 value )
We basically want to use one value if the size of field 1 is 1 to 9 inclusive and use a different value if size is 0 (field 1 not present) or it is greater than 9 in size.
We are having problems getting the logic to work. I am thinking that it is do to the multiple lookups against the same field and condition.
Any thoughts/suggestions on a work around to accomplish the task?