[NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?
wolfgang.schuster.lists at gmail.com
Sun Jan 9 16:03:54 CET 2022
Joel via ntg-context schrieb am 09.01.2022 um 15:16:
> Is there a way for a macro to check the previous value of #1, the last
> time that same macro was called?
> Here is a minimum working example, pretending that `\previousvalue` is
> equal to #1 from the last time the same macro was called:
To check is the current value differs from the last one you need a temp
macro where you store the current value at the end of your command to
check it in the next call.
same as last time
it is different from last time
More information about the ntg-context