Using a Rule to Populate a List
Using a Rule to Populate a List
(OP)
I'm trying to write a rule to control the multiple values of a parameters but not having any luck
it's a string parameter im using to try to control the values contained in a list of a length parameter
if
string parameter = a
then
length parameter = list (1in, 2in)
else
length parameter =list (3in,4in)
This is the error I get.
"impossible to affect a variable of type List in a variable of type Length. You can use the syntax <set x=y> if your intention is to operate a cast between 2 variables
it's a string parameter im using to try to control the values contained in a list of a length parameter
if
string parameter = a
then
length parameter = list (1in, 2in)
else
length parameter =list (3in,4in)
This is the error I get.
"impossible to affect a variable of type List in a variable of type Length. You can use the syntax <set x=y> if your intention is to operate a cast between 2 variables





RE: Using a Rule to Populate a List
/*Rule created by dbezaire 17/10/2012*/
let A (list)
let B (list)
let items (list)
A.Append(1in)
A.Append(2in)
B.Append(3in)
B.Append(4in)
if String.1 == "a"
items = A
else if String.1 =="b"
items = B
List.1 = items
Length.2.AuthorizedValues = items
Win XP64
R20/21, 3DVIA Composer 2012, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB