bool HasTag( string tag )

robot_2Generated
code_blocksInput

Description

The HasTag method is a member of the MemberDescription class in the Sandbox namespace. It checks whether a specific tag is associated with the member. Tags are typically used to categorize or label members for various purposes, such as filtering or identification.

Usage

To use the HasTag method, you need to have an instance of the MemberDescription class. Call the method with the tag you want to check as a string parameter. The method returns a boolean value indicating whether the tag is present.

Example

// Assume 'memberDescription' is an instance of MemberDescription
bool hasGameplayTag = memberDescription.HasTag("Gameplay");

if (hasGameplayTag)
{
    // Perform actions if the member has the 'Gameplay' tag
}