I made a mistake with the MWE for the mailing list, however, corrected
MWE gives same error:
\usemodule[memo]
\setupmemo[
name={Jason Ross},
opening={People of Earth},
closing={Thanks for all the Fish,},
signature={The Dolphins}]
\starttext
\startmemo
We are writing to let you know that we
Hello All,
I was trying to read the value of '\totalnumberofpages' into lua to do
something with it. As an example, see below.
Now, as I understand it, my example would not work as TeX gets the first go
at this and therefore the variable 'pages' is the string
'\totalnumberofpages' and not the
Hello,
The Letter module seems to also include a module for memos.
The following MWE fails with version 2021.10.10 23:43:
\usemodule[memo]
\setupmemo[
opening={People of Earth},
closing={Thanks for all the Fish,},
signature={The Dolphins}]
\startmemo
\startletter
We are writing to let you