How do I test whether you're sitting in a boat in Minecraft?

Da
4

I have already asked the question how to test whether you are sitting in a cart. But now I would like to know how I test whether I'm sitting in a boat

le

Actually the same

Da

Ok cool thanks

le

You're welcome

an

The same thing, only instead of a minecart stop with a boat