Conditional state. can be applied to monthly data

It is possible as far as the length of input lists are the same.