Microsoft MakeCode

Is there a way to check if a sprite has a flag?

This would be useful for soft-locking, because apparently no collision checks are run on that sprite while it is soft-locked and there are probably more scenarios that require this, like triggering more flags all the time instead of doing each manually.