Book a Demo

Author Topic: How to escape = sign  (Read 3204 times)

Jakub

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
How to escape = sign
« 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?
« Last Edit: September 21, 2013, 02:04:08 am by jaksky »

Jakub

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to escape = sign
« Reply #1 on: September 22, 2013, 02:54:16 am »
Solved:
$eq = "="

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

this works

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to escape = sign
« Reply #2 on: September 22, 2013, 08:23:30 pm »
Code: [Select]
code=%qt%this.$attName "=" $propertyName;%qt%should work too, shouldn't it?

q.