slisson / shadowmodels

Incremental model transformations for JetBrains MPS
2 stars 0 forks source link

Child Added should have a condition #136

Open markusvoelter opened 5 years ago

markusvoelter commented 5 years ago

In this example,

screenshot 2019-02-03 at 18 48 04

the final AltCase, the one for the default, should only be added if the default of the source table is not null.

slisson commented 5 years ago

You can write

cases: if ...
       then AltCase { ...
       else null
markusvoelter commented 5 years ago

Yeah, just found that, too. But isn't this ugly?