Skip to content

Commit ae03a65

Browse files
authored
Update inputs.md
1 parent 6edd444 commit ae03a65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/development/extensions/inputs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ These are the acceptible values for type:
3737
|Scratch.ArgumentType.STRING|Any text|apple, 123, true|
3838
|Scratch.ArgumentType.NUMBER|Any number|123|
3939
|Scratch.ArgumentType.BOOLEAN|True or false. This one is special as it tries to prevent users from dropping non-booleans into the input.|true|
40+
|Scratch.ArgumentType.ARRAY|An array|["item"]|
41+
|Scratch.ArgumentType.OBJECT|An object|{"key": "value"}|
4042
|Scratch.ArgumentType.COLOR|A hex color code|#ff4c4c|
4143
|Scratch.ArgumentType.ANGLE|A direction input. 90 means to the right. Increases counterclockwise. Same as sprite direction.|90, 180|
4244
|Scratch.ArgumentType.MATRIX|A 5x5 matrix represented in binary| 11101010101... |
@@ -95,7 +97,7 @@ Notice that, although the dropdown displays UPPERCASE in the editor, the block a
9597
## Exercises
9698

9799
1. Add a block that does the same thing as the built-in Scratch "join" block. It should take two arguments and produce a new string joining them together. Make sure your block casts the arguments to strings so when someone runs "join ((1 + 2)) ((3 + 4))" they get "37" not "10".
98-
1. Create a boolean block that takes a number argument and a menu argument with the options "odd" and "even". The block should return whether the given number is either odd or even, as the menu says.
100+
2. Create a boolean block that takes a number argument and a menu argument with the options "odd" and "even". The block should return whether the given number is either odd or even, as the menu says.
99101

100102
## Next steps
101103

0 commit comments

Comments
 (0)