Jump to content

Scratch code help

Go to solution Solved by tikker,

Have you made a list first? Doing a quick check online those blocks only show up once you make a list variable.

13 minutes ago, Agena_ said:

Or what this code will output?

Those code blocks quite literally tell you. At the end it will  "say",or output, the 7th item in the list.

 

image.png.9e26abba6136a3a8e35deb9fa39bd12f.png

Hi im trying to learn scratch, i wanted to know what this code would output 12

 

I tried making it on scratch 3.0, but the 'delete all of list' / 'add to list' / item 7 of list - arent on scratch, i couldnt find it

The reddy orange blocks.

 

Does anybody know how i can import the reddy orangy blocks. 

 

Or what this code will output?

 

Thanks

Link to comment
https://linustechtips.com/topic/1400948-scratch-code-help/
Share on other sites

Link to post
Share on other sites

Have you made a list first? Doing a quick check online those blocks only show up once you make a list variable.

13 minutes ago, Agena_ said:

Or what this code will output?

Those code blocks quite literally tell you. At the end it will  "say",or output, the 7th item in the list.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
https://linustechtips.com/topic/1400948-scratch-code-help/#findComment-15186700
Share on other sites

Link to post
Share on other sites

8 minutes ago, tikker said:

Have you made a list first? Doing a quick check online those blocks only show up once you make a list variable.

Those code blocks quite literally tell you. At the end it will  "say",or output, the 7th item in the list.

thanks it worked. appreciate it 

For these 2 images i attached. Do you know how i can test if they will return true or false?

 

161818826_Screenshot(351).png.aa751884861570ab69638b479786593a.png

 

1883219467_Screenshot(350).png.742739f8f61273bff78437494b5bab60.png

Link to comment
https://linustechtips.com/topic/1400948-scratch-code-help/#findComment-15186723
Share on other sites

Link to post
Share on other sites

36 minutes ago, Agena_ said:

thanks it worked. appreciate it 

For these 2 images i attached. Do you know how i can test if they will return true or false?

 

161818826_Screenshot(351).png.aa751884861570ab69638b479786593a.png

 

1883219467_Screenshot(350).png.742739f8f61273bff78437494b5bab60.png

That comes down to you knowledge of math and logical operators. = (or == in most lanugages), > and < check for equality, larger than and smaller than. AND checks if both sides of the comparison are true and OR checks if at least one side is true.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
https://linustechtips.com/topic/1400948-scratch-code-help/#findComment-15186766
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×