Best before rules - add label to outcome

It would be helpful if the outcome of a rule branch could be labelled.

This might apply even more so to more complicated rule sets.
(illustration only, I’m not necessarily endorsing these shelf lives)

1 Like

Thanks for the suggestion, Jon.

In this particular case, you could have just had a single “Is cask” condition, with the “Yes” going to the cask and the “No” going to the +39 weeks (as it would cover both smallpack and keg).

I realise this is just an example and I still see the value in the feature request, but thought it might be helpful to mention how the example case could be simplified.

Yes. As it happens I’m trying to enforce different lives for keg and smallpack (and cask). So we would need a minimum of 2 conditions to resolve this. And what if another “type of container” were added? Unless you’re promising never to do that? But even in your example it would be useful to label “in that case it’s keg or small pack”.

I’m mainly concerned with ensuring that our rules are explicit, easily comprehended and maintainable. Because reasons.

Yeah, good point. I can’t promise we won’t add another (in fact, we probably will)!

This has been added now, thanks for the suggestion, Jon :tada:

1 Like

That’s fantastic. Well done folks!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.