Item () exists in (): Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
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==
==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.
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.

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.