Post Reply 
Feature request: tag default value (constant)
10-04-2017, 22:16
Post: #6
RE: Feature request: tag default value (constant)
The options in the tagValue property are processed in order of appearance, so it would be possible to specify:

Mytag.default={OtherTag}, Mytag.default="my default string"

This would apply the OtherTag value as the default if OtherTag is present in the file and would apply "my default string" as the default value if no OtherTag value was applied.

The reverse order would also be also valid:

Mytag.default="my default string", Mytag.default={OtherTag}

but this is not useful because it would just be equivalent to:

Mytag.default="my default string"

Although this works, I think your suggestion of using a different option name for a string value might be clearer and for this I think the option name defaultValue would be a good choice.

I don't understand your reference to "a string with hyphens". The string could contain any characters.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Feature request: tag default value (constant) - simoncn - 10-04-2017 22:16

Forum Jump:


User(s) browsing this thread: 1 Guest(s)