Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jakub on September 21, 2013, 02:03:41 am

Title: How to escape = sign
Post by: Jakub on September 21, 2013, 02:03:41 am
Hi I am using MDA transformation templates and I would like to create initial behavior - code:

Code: [Select]
this.param = param;

I tried:
Code: [Select]
code=%qt%this.$attName = $propertyName;%qt%

But seems that = sign is evaluated for equility because I am getting

Code: [Select]
this.;
How to bypass that?
Title: Re: How to escape = sign
Post by: Jakub on September 22, 2013, 02:54:16 am
Solved:
$eq = "="

and then specify
code=%qt%this.$attName $eq $propertyName;%qt%

this works
Title: Re: How to escape = sign
Post by: qwerty on September 22, 2013, 08:23:30 pm
Code: [Select]
code=%qt%this.$attName "=" $propertyName;%qt%should work too, shouldn't it?

q.