Log in

View Full Version : how to do simple math with the cavebot?



Hans Henrik
03-07-2019, 22:28
EDIT: nevermind, figured it out,


fastExiva _loop=$numericalexp:{$_loop$}+1$



-original message:
eg i want to loop a particular part of the code 20 times, i want do to something like



fastExiva _loopCounter=0
fastExiva _loopCounter=0
:startLoop
sayMessage $_loopCounter$
fastExiva _loopCounter=$_loopCounter$+1
IfTrue ($_loopCounter$#number<=#3) Goto $nlineoflabel:startLoop$
:endLoop

i'm not sure how to do the "fastExiva _loopCounter=$loopCounter$+1"-part