Set counter to (): Difference between revisions
Set counter to ()
Content deleted Content added
You can get decimal values using reporters. |
No edit summary |
||
Line 10: | Line 10: | ||
This block can be worked around by clearing the counter using the [[clear counter]] block, and then incrementing or decrementing the counter a certain number of times (just check if the number entered is negative or not) for integer values. A variable can also be used by using the [https://en.scratch-wiki.info/wiki/Set_()_to_()_(block) set () to ()] block to set the value. |
This block can be worked around by clearing the counter using the [[clear counter]] block, and then incrementing or decrementing the counter a certain number of times (just check if the number entered is negative or not) for integer values. A variable can also be used by using the [https://en.scratch-wiki.info/wiki/Set_()_to_()_(block) set () to ()] block to set the value. |
||
==Trivia== |
==Trivia== |
||
*This block |
*This block and [[decrement counter]] are the only [[counter]] blocks that aren't in Scratch. |
||
{{DISPLAYTITLE:set counter to ()}} |
{{DISPLAYTITLE:set counter to ()}} |
||
[[Category:Stack Blocks]] |
[[Category:Stack Blocks]] |
Revision as of 20:06, 22 December 2023
Images needed
This article needs images or better quality images. You can help PenguinMod Wiki by adding the images or uploading them. Specifically: There is no image for the block or the workaround.
set counter to () | |
---|---|
Block Type | Stack Block |
Category / Extension | Control |
The set counter to () block is a stack block that sets the counter to the entered in value. To get this block, one must add the Control Expansion extension.
Workaround
This block can be worked around by clearing the counter using the clear counter block, and then incrementing or decrementing the counter a certain number of times (just check if the number entered is negative or not) for integer values. A variable can also be used by using the set () to () block to set the value.
Trivia
- This block and decrement counter are the only counter blocks that aren't in Scratch.