Fandom

Foldit Wiki

Foldit Lua Function structure.GetCount

1,465pages on
this wiki
Add New Page
Comments0 Share

structure.GetCount Edit

Function
integer structure.GetCount()
Description
Return the number of segments.
V1 Function Name
get_segment_count
More Information
Details


Remarks Edit

Returns the number of segments in the "current" pose. Note that in design puzzles that other poses (such as recentbest or a quicksave) may have a different number of segments than the current pose, so be very careful about caching the number of segments in a pose, restoring an alternate pose, then using the cached number of segments.

Example Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.