Opposite of including tags in if command - how to exclude tags?

User of SugarCube 2.37.3

<<if tags().includes('nodeath')>>
<</if>>

Basically, I’m aware of how the usage of this will cause a passage have an event trigger if it has that tag, but I’m trying to do the opposite, where the if command’s condition is for a passage to NOT have that tag.

Can that be done?

I mean in theory I could do…

<<if tags().includes('nodeath')>>
<<set $health to 1>>
<<elseif $health lte 0>>
<<goto "Death Screen">>
<</if>>
<</if>>

… but I’d definitely like something briefer and simpler if possible, especially for future use.

You can simply say

<<if not tags().includes('nodeath')>>

or

<<if !tags().includes('nodeath')>>
3 Likes