Anchor Tags

Overview

You can tag an anchor by appending a tag of the form #mycustomtag to the end of the anchor. These tags can be used by Anchor Flags an to enable, disable, and prevent the code stopping at all anchors with a given tag

Examples

Example 1: Using tags to disable all decorators with the tag #group-1

# Example 1: This disables all decorators with the tag #group-1
# @flag disable #group-1

# This will be DISABLED since it has the #group-1 tag
a = 3
# @input number data=a #group-1 


# This will be DISABLED since it has the #group-1 tag
b = 3
# @input number data=b #group-1 #group-2


# This will be ENABLED since it does not have the #group-1 tag
c = 3
# @input number data=c #group-2

Example 2: Using tags to disable all anchors with the tag #group-2

# Example 2: This disables all decorators with the tag #group-2
# @flag disable #group-2

# This will be ENABLED since it does not have the #group-2 tag
a = 3
# @input number data=a #group-1 


# This will be DISABLED since it has the #group-2 tag
b = 3
# @input number data=b #group-1 #group-2


# This will be DISABLED since it has the #group-2 tag
c = 3
# @input number data=c #group-2

Did this page help you?