This content has been marked as final. Show 1 reply
miro_connect wrote:That isn't how it works.
to avoid the ugly if code blocks I want to use a design pattern
A Pattern represents a way that is often used to implement some bit of functionality. Nothing more. It certainly has nothing to do with minimizing how much typing you need to do.
and tomarrow I might add more conditions ,The best way to create general solutions is to start with several specific solutions. The more then better. If you only have one then it is much harder.