Skip to content

#JIndex

VariableExtendedRead-onlyNumberNeeds client

Also searchable as: #JIndex · JIndex · journal index

#JIndex is the running number of the newest journal line: every new line gets the next number. Give such a number to scanjournal to read exactly that line. Remembering #JIndex and reading every number up to the current one handles each new line exactly once, however many arrive at once.

set %from #JIndex + 1
msg #smc TestA$
msg #smc TestB$
wait 1s
for %n %from #JIndex
{
scanjournal %n
if TestB in #Journal
event SysMessage Found it.
}
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.