I am trying to pass parameters in "when", something like
$c: Cart($d.memberLevel != null &&
$c.alreadyApplied("my_disc") == false
and it does not want to compile on the last line. So if it is not a simple bean property, but it is depending on something, how do I express this?