Definition of や否や
-
(exp) the minute (that) ...; no sooner than ...
そこに出かけるやいなや彼女は病気になった。
No sooner had she gone there than she was taken ill. - whether or not