Item () exists in (): Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "thumb|493x493px The item exists in list block is a boolean block that detects if a list has a list number, if it doesn't have as much as the number then it would be false.")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Blocks
[[File:Block 6 5 2023-4 12 42 PM.png|thumb|493x493px]]
|block_img = Block 6 5 2023-4 12 42 PM.png
The item exists in list block is a boolean block that detects if a list has a list number, if it doesn't have as much as the number then it would be false.
|block_type = Boolean
|category = [[Lists]]
}}

The '''item () exists in ()''' block is a boolean block and a [[lists block]] that detects if a list has a list number, if it doesn't have as much as the number then it would be false.
==Workarounds==
This block can be worked around by checking if the item is blank. However, this will not work correctly if the item does exist, but is just an empty string.

Another alternative is checking if the number of items in the list is less than the number given.
[[Category:Boolean Blocks]]
[[Category:List Blocks]]

Latest revision as of 01:11, 13 December 2023

Item () exists in ()
...
Caption
Block Type Boolean
Category / Extension Lists
Status Who tf uses status

The item () exists in () block is a boolean block and a lists block that detects if a list has a list number, if it doesn't have as much as the number then it would be false.

Workarounds

This block can be worked around by checking if the item is blank. However, this will not work correctly if the item does exist, but is just an empty string.

Another alternative is checking if the number of items in the list is less than the number given.