How to achieve the same effect as in the image, but with checking if the “CurrentHour” is larger then 22 OR smaller then 9.
Currently it just checks the first value and if it isnt right, it fails.
Add a Composite decorator, which allows you to combine multiple decorators with logic operations
1 Like