0

In MPS I have defined a template:

template reduce_Car
Input Car

parameters
color : String

<TF [<Car>???</Car>] TF>

Now I wanted to use the defined parameter "color" in my template?

Ghashange
  • 1,027
  • 1
  • 10
  • 20

1 Answers1

1

You access parameters through genContext. So wrap the text to replace with a property macro

<TF [<Car>$[red]</Car>] TF>

and down in the Inspector for the property macro access the parameter as 'genContext.color'

Vaclav Pech
  • 1,431
  • 8
  • 6