I am trying to put this text file:
into pages::%pagecount% variable where "---" means a new page but it's not working. I am curious about whether we can put %variable% in another {variable::%variable%} or not.
code_language.skript:
hello
this
is
---
a
test
into pages::%pagecount% variable where "---" means a new page but it's not working. I am curious about whether we can put %variable% in another {variable::%variable%} or not.
code_language.skript:
on load:
set {text::*} to file contents of "help/texts.txt"
set {pagecount} to 1
loop {text::*}:
if {text::%loop-index%} is "---":
set {page::%pagecount%} to join {thiss::*} with "%newline%"
set {thiss::*} to ""
add 1 to {pagecount}
else:
add {text::%loop-index%} to {thiss::*}