There is no documentation for function 'when'