\prg_set_conditional:Npnn \ior_if_eof:N #1 { p , T , F , TF }
{
\cs_if_exist:NTF #1
{
\int_compare:nTF { #1 = \c_term_ior }
{ \prg_return_false: }
{
\int_compare:nTF { -1 < #1 < \c_term_ior }
{
\if_eof:w #1
\prg_return_true:
\else:
\prg_return_false:
\fi:
}
{ \prg_return_true: }
}
}
{ \prg_return_true: }
}