Besides the 520 bytes consensus rule limit, is there a limit on how many of each OP_IF, OP_ELSE and OP_ENDIF can be used in a single script?
For example, a company that has 3 people in its purchase department would like to make a fast purchase if all people in the department agree and slow it down in case not everybody agrees, but not make it impossible in the final:
Alice, Bob and Carol store funds in a P2SH address. Initially, all 3/3 of signatures are required initially.
After some time, (OP_CHECKLOCKTIMEVERIFY) just two of them can spend (2/3 signatures required).
After more time, (first OP_CHECKLOCKTIMEVERIFY + more time), any one can spend (1/3 signatures required).
How would a script like this look like?