Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Guillaume on September 02, 2022, 08:02:13 pm
-
Hello,
Is there a way to combine conditions within an if statement in ShapeScript ?
The following doesn't work so I have to repeat if.. else statements for each condition and duplicate the code.
if (HasTag('Type','A') AND HasTag('Type','A'))
{
// ...
}
-
AND = nested IF.
OR = repeat the code.
(argh!)
q.