replied on February 10, 2015
I also coded up another SDK Script Activity that accepts a tag name as a token and returns a boolean to indicate whether the tag is assigned to the entry. (Again, using RA. If you need an LFSO example then let me know) This script is looking for a token called 'TagName' created by an Assign Token Values activity. Set that token value to the name of the tag to look for and it returns a boolean token called 'IsFound'.
Protected Overrides Sub Execute()
'Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session
Dim isFound As Boolean = False
Dim tagName As String = Me.GetTokenValue("TagName")
Dim id As Integer = Tag.GetInfo(tagName, Me.RASession).Id
For Each eTag As EntryTag in Me.BoundEntryInfo.GetAssignedTags()
If eTag.TagId = id Then
isFound = True
Exit For
End If
Next
Me.SetTokenValue("IsFound", isFound)
End Sub