I found some code that will allow you to check a passage's tags and then if the statement is true, to set the current passage name as a variable.
But the code is obviously for a different version of twine. Maybe Harlowe? And I'm using sugarcane.
What I want is a code snippet that says
If passage tags do not contain blah blah
set variable to passage name.
I cannot find an example for sugarcane and my fumbling is not working.
In your use-case because you want to check that a tag is not included you want to check that the return is equal to -1. (eg. == -1)
What I'm using is header tagged passage that says
<<if tags().indexOf("party") is -1>>
<<set $last to passage()>>
Then I have a link like this: $last
But the link doesn't work.