How do I find out what navmesh area I am on?

I want to change gameObject characteristics depending on what navMesh area it is standing on. For example, if it’s standing on “rough” terrain, it will be considered “in cover”, etc. I know it’s going to be an if statement along the lines of:
if(navMesh terrain == rough)
inCover = true;

But what should be in the brackets? Something with area index or name - but how do I find those?

have you tried this

@Happy-Zomby That works perfectly. Big thanks!