srdf script

I need a script which compares two conditions and depending on the input will output the correct result.
therefore, syntax;
in aix 5.3 - cmdline# symrdf -g HA_DG query | awk '/Split/ {print "SRDF is Not Running " }'
or .... this is where I need the assist....
symrdf -g HA_DG query | awk '/Synch*/ {print "SRDF ENABLED" }'
it is basically a test to determine the state of SRDF/S link at a site. How - what syntax do I use to tie the script together?

Thank you in advance,
Richard

How about:

if symrdf -g HA_DG query | grep -q Split
then
    echo SRDF is not running
fi

if symrdf -g HA_DG query | grep -q 'Synch.*'
then
     echo SRDF Enabled
fi

Note that if you have multiple devices in that output and some are Synched and some are Split then both conditions would be true... is that what you want?

Yes - thanks for your efforts _ Il will work with this and modify if I have to...

Happy Holidays!
Richard