From e2d433d75a510b466d0d42f0c8465cc843913ada Mon Sep 17 00:00:00 2001 From: FajitaOfTreason <234828294+FajitaOfTreason@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:15:52 -0700 Subject: [PATCH] fix off by one index in parse example --- streamerbot/2.guide/03.variables.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/streamerbot/2.guide/03.variables.md b/streamerbot/2.guide/03.variables.md index 6f5c4ded..69b475b8 100644 --- a/streamerbot/2.guide/03.variables.md +++ b/streamerbot/2.guide/03.variables.md @@ -180,13 +180,13 @@ Fetches the value of the argument named by `parse`'s parameter, which itself can // Same results as %user% $parse(user)$ -// First, Set Argument %i% to 1 +// First, Set Argument %i% to 0 $parse(line%i%)$ -// ==> returns value of %line1% (the first line of the file) +// ==> returns value of %line0% (the first line of the file) -// Set Argument %i% to $math(%i%+1)$ (i.e., 2) +// Set Argument %i% to $math(%i% + 1)$ (i.e., 1) $parse(line%i%)$ -// ==> returns value of %line2% (the second line of the file) +// ==> returns value of %line1% (the second line of the file) ``` ::tip `%arguments%` and `~persistedVariables~` will be parsed in `parse`'s parameter, but not other `$inline()$` functions. If you wish to use a function, then set another argument to the output of the function, and use that argument in the `parse` instead.