VRRP check master/backup

Hi There

Im looking for a way to get the master or backup status of a VRRP interface into a variable. Tried every way I could think of.. Could somebody assist?

Thanks!!

simple:

:global isMaster [/interface vrrp get vrrp1 master];
:global isBackup [/interface vrrp get vrrp1 backup];