Zmiany

Skocz do: nawigacji, wyszukiwania

Introduction 3 - Glossary of basic Scratch 2.0 blocks

Dodane 1113 bajtów, 08:20, 7 lip 2015
/* Operators */
The blocks used to build complex logical expressions (conjunction – both conditions are true, alternative – one of the conditions is true, negation – contradiction). Insert the matching blocks returning Boolean values (true or false) in argument boxes. Blocks are used most often in the following instructions: if, repeat until, wait until.
'''Example:'''
 
[[Plik:M_3_110.JPG]]
 
The block is used to connect two strings of text into one. Usually one of the arguments is the entered text, and the other a value returned by another block. The block is often used as an argument in the say and think blocks.
 
'''Example:'''
 
[[Plik:M_3_111.JPG]]
 
The value is the remainder of the division of the first argument by the second. The block is often used as an argument in arithmetic and logical operations.
 
'''Example:'''
 
[[Plik:M_3_112.JPG]]
 
The value is the argument rounded off to the nearest integer – according to rounding rules, i.e. 0.5 and more is rounded up, otherwise down. The block is often used as an argument in other blocks.
 
'''Example:'''
 
[[Plik:M_3_113.JPG]]
 
The value is the result of the function selected from the drop-down list for the argument specified in the edit box. From the drop-down list we can select the following functions:
[[Plik:M_3_114.JPG]]
 
The block is often used as an argument in other blocks. Functions such as '''floor''' (always round down) and '''ceiling''' (always round up) may require explanation.
 
'''Example:'''
223
edycje