Finding the nice(ni) number with PID?

Hi, is there a command that takes the PID of a process and that only diplays it's ni number?

I`m pretty sure it would require pipes but I tried a few things that ended up miserably...

Since the ps command doesn't show the ni unless I do ps -o ni but then I can't find a way to search the right process by PID number.

Under Solaris - 'man ps':

#!/bin/ksh

myPID=703
ps -e -o pid,nice | nawk -v pid="${myPID}" '$1==pid {print $2}'

Pipes are not required. On Solaris:

ps -o nice="" -p <your_pid>