This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-18 23:03:56

macandcheese
Scratcher
Registered: 2011-01-11
Posts: 99

able to

is there a block such as, IF ___ ABLE TO BE DIVIDED BY _____ DO ____?

Offline

 

#2 2011-02-18 23:16:15

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: able to

Well, any number is able to be divided by any number except 0.

So if divisor =/= 0 then report true.

Last edited by Kileymeister (2011-02-18 23:16:33)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-02-18 23:25:53

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: able to

http://www.freeimagehosting.net/uploads/46fe43aa67.gif

Quite simple, really.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2011-02-19 08:10:42

macandcheese
Scratcher
Registered: 2011-01-11
Posts: 99

Re: able to

If __ Able To Be Divided By 80. Do ___ ???????????

Offline

 

#5 2011-02-19 08:18:28

macandcheese
Scratcher
Registered: 2011-01-11
Posts: 99

Re: able to

[Block] what does the           ((  <mod>  ))                             block do? [/Block]

Offline

 

#6 2011-02-19 08:27:00

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: able to

http://info.scratch.mit.edu/sites/infoscratch.media.mit.edu/images/Mod.gif reports remainder from division of first number by second number. Check out the Scratch Wiki for more information.

Last edited by mathematics (2011-02-19 08:28:47)

Offline

 

Board footer