You could:
1. Use guard conditions instead.
2. Use a macro (Jason posted one here just a couple of days ago)
3. Use a map:
var actions = [
thumb=> function () this.click(clickHandler);
title=> function () title.text = data.nameDe;
creator=> function () creator.text = data.creator;
price=> function () price.text = data.price + " CHF";
];
if (actions.exists(name)) actions.get(name)();
Note that this will probably not work with keys being Dynamic. I would assume that in this case all keys are object, so `name` should be at least of type `{}` (which would also permit usage of maps, i.e. ObjectMap).
Regards,
Juraj