So I’m putting this here so I don’t forget (which I think I’ve done before). I recently had the need to compare a string to a property in NAnt and it took me awhile to figure it out because Google was having an off day. It’s a lot quicker if you just read the documentation but in my defence, it wasn’t in the place I was expecting.

Anyways, here ya go: