You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing this in repl.it it doesn't support nested loops. The LCI interpreter does however. I mean you can just test this with a simple nested loop but here's the code im using.
I HAS A a ITZ 1
I HAS A b ITZ 1
I HAS A c ITZ 1
I HAS A n
I HAS A message ITZ "pls entr teh var N thxlol"
VISIBLE message
GIMMEH n
IM IN YR ah UPPIN YR a TIL BOTH SAEM a AN 5
IM IN YR bh UPPIN YR b TIL BOTH SAEM b AN 5
IM IN YR ch UPPIN YR c TIL BOTH SAEM c AN 5
VISIBLE a
VISIBLE b
VISIBLE c
VISIBLE "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
IM OUTTA YR ch
IM OUTTA YR bh
IM OUTTA YR ah
The text was updated successfully, but these errors were encountered:
This is not a bug, c just stays at 5 after the innermost loop, so even when a and b change, nothing will be printed. Here's a working example:
I HAS AaITZ1I HAS AbITZ1I HAS AcITZ1IM IN YRahUPPIN YRaTILBOTH SAEMaAN5bR1IM IN YRbhUPPIN YRbTILBOTH SAEMbAN5cR1IM IN YRchUPPIN YRcTILBOTH SAEMcAN5VISIBLEaVISIBLEbVISIBLEcVISIBLE"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"IM OUTTA YRchIM OUTTA YRbhIM OUTTA YRah
I was testing this in repl.it it doesn't support nested loops. The LCI interpreter does however. I mean you can just test this with a simple nested loop but here's the code im using.
The text was updated successfully, but these errors were encountered: