How can I test for a TeX boolean in Lua?
This kind of code doesn't work:
\newif\if@mypkg@someif
\begin{luacode}
-- some lua code
\if@mypkg@someif
-- some more lua code
\else
-- another lua code
\fi
-- again some lua code
\end{luacode}
Is there a way to achieve this?