scratchfoundation / scratchfoundation/scratch-blocks
True and False blocks
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Simple true and false blocks have been suggested multiple times in the Scratch forums, so I thought I would bring it up here. Of course this is already possible by using the words true and false, but it's easier to just drag a block without typing anything. I've also seen some Scratchers use things like not<> or not<not<>> for Boolean values because it was faster than typing the word true or comparing 1 to 1 which makes the code very hard for other Scratchers to understand. If these two blocks get implemented, it would also make since to allow reporters in Boolean slots, so a variable that's set to true with the true and false blocks don't need to be compared to anything.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files, tests, or entry points. Start by locating the existing Boolean blocks and the handling of Boolean inputs, then determine how standalone true and false blocks would fit with reporter values. Done means the blocks are available and Boolean reporters can be used directly in Boolean slots, with coverage for the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100