How can I achieve to check the open and close sequence of the iris and fan if I don't use e.g. if ...else if?