Following the death of either William III or Mary II , the other was to continue to reign .
After either William III or Mary II died , the other was to continue to rule .