Skip to content

#JFound

VariableJournal & messagesRead-onlyNumberNeeds clientNew in Reforged
Set by
FindJournal

Also searchable as: #JFound · JFound · journal match · found journal line

#JFound says what the last findjournal found:

Value Meaning
a number above 0 The running number of the line, the same numbering as #JIndex.
0 No line matched, or the time ran out.
N/A No findjournal has finished yet in this run.

Pressing Stop during a findjournal leaves it as it was.

Write if #JFound > 0. if #JFound alone is never true, because only -1 counts as true.

The line itself is in #Journal and its colour in #JColor. Setting your bookmark to #JFound continues the search after this line, and scanjournal #JFound reads the same line again.

set %j #JIndex
msg hello there$
findjournal %j * 3s hello_there
if #JFound > 0
{
set %j #JFound
event sysmessage Found line #JFound
}
halt

See also