Sendoacf
Chemical
- Jun 10, 2022
- 8
Hi,
I would like to write a rule for my CATPart which can solve my problem
I have a Body with several Pockets, lets name them with a,b,c,...
The point is that i want a rule which if i write "a" in a Parameter the "a" pocket is active and the rest of the pocket gets disabled, if i write "b", the "b" pocket is active and the rest of them are desactivated,...
Actually I have smthng like this :
if LETRA=="A"
{
LETRA_RESTA\A\Activity =true
}
else
{
LETRA_RESTA\A\Activity =false
}
if LETRA=="B"
{
LETRA_RESTA\B\Activity =true
}
else
{
LETRA_RESTA\B\Activity =false
}
to the infinite with the rest of parameters. But I would like to know if i can simplify this and dont need to write all of them for like 20 diferent parameters.
Thank you and sry for my English^^
I would like to write a rule for my CATPart which can solve my problem
I have a Body with several Pockets, lets name them with a,b,c,...
The point is that i want a rule which if i write "a" in a Parameter the "a" pocket is active and the rest of the pocket gets disabled, if i write "b", the "b" pocket is active and the rest of them are desactivated,...
Actually I have smthng like this :
if LETRA=="A"
{
LETRA_RESTA\A\Activity =true
}
else
{
LETRA_RESTA\A\Activity =false
}
if LETRA=="B"
{
LETRA_RESTA\B\Activity =true
}
else
{
LETRA_RESTA\B\Activity =false
}
to the infinite with the rest of parameters. But I would like to know if i can simplify this and dont need to write all of them for like 20 diferent parameters.
Thank you and sry for my English^^