Skip to content

RELATIONS.md - access relation Id #749

Answered by cldellow
BenOnTrack asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're right -- the docs are incorrect. NextRelation() returns two return values, not a single return value that is an array with two values.

The docs might read better as:


You can also obtain the element's role in the relation at the same time, via a second return value:

local rel, role = NextRelation()
if not rel then break end

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenOnTrack
Comment options

Answer selected by BenOnTrack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants