This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
danielsv03's profile picture

count down from x number help (SOLVED)

Started by danielsv03, 15 April 2017 - 11:53 AM
danielsv03 #1
Posted 15 April 2017 - 01:53 PM
Hello so i want to make it count down like something like this but it dosen't work




a = 4

repeat

b = a - 1

print( b )

until b == 1


But it will spam 3 how can i make it print "3" then 2 then 1


Update: Switch all the b to a and it works
Edited on 15 April 2017 - 12:37 PM
ReBraLaCC #2
Posted 15 April 2017 - 02:54 PM
or do it easier and do it like

for a = 4,1,-1 do
print(a)
end