@egreg that mathparse question you just answered. I was trying to do it with an int_case,
\NewDocumentCommand\Foo{m}
{
\int_case:nn { \int_eval:n { \int_mod:nn { \int_div_truncate:nn {#1}{90} +4 } { 4 } } }
{
{0}{ south~west }
{1}{ south~east }
{2}{ north~east }
{3}{ north~west }
}
}
but node did not like it.