SSCL Wiki

Comments and Automatic Range Comments

Normal comments are added with comment().

distance.comment("Camera distance.");

For integer and double values, SSCL can also automatically add the configured range.

For example:

distance
        .min(1.0)
        .max(32.0);

generates:

# Camera distance.
# Range: 1.0 - 32.0
distance = 4.0

To disable the automatic range comment/line, use:

distance.rangeComment(false);

The range comment is only documentation for the user. It does not create another config property.