How to check if player is under water?

Found this photo in the answer hub that was asked back last year.

It seems in the function I would need to check if the player is underwater, so they could start losing breath. My question is how would I go about making this function to check if the player is under water?

Also, what is that SWIMMING node? can’t figure out exactly what node that is.

Swimming node is “==” (equals), to set the new mode.
u can use “select” or something as well.