Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part:TAG docmentation has example that has nothing to do with Part:TAG #2670

Closed
Dunbaratu opened this issue Feb 13, 2020 · 0 comments
Closed
Labels
documentation Change the Sphinx user documents.

Comments

@Dunbaratu
Copy link
Member

This code block appears as an example under the Part:TAG explanation in the docs. It has nothing to do with the :TAG suffix, and never mentions it.

It looks like it was meant to be an example for the :TARGETABLE suffix but might have gotten moved (or failed to be moved) as part of some kind of documentation re-ordering.

LIST PARTS FROM TARGET IN tParts.

PRINT "The target vessel has a".
PRINT "partcount of " + tParts:LENGTH.

SET totTargetable to 0.
FOR part in tParts {
    IF part:TARGETABLE {
        SET totTargetable TO totTargetable + 1.
    }
}

PRINT "...and " + totTargetable.
PRINT " of them are targetable parts.".
@Dunbaratu Dunbaratu added the documentation Change the Sphinx user documents. label Feb 13, 2020
PiezPiedPy pushed a commit to PiezPiedPy/KOS that referenced this issue Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Change the Sphinx user documents.
Projects
None yet
Development

No branches or pull requests

1 participant