what does test -x from /etc/cron.daily/logrotate do?
test -x
test -x /usr/sbin/logrotate || exit 0 /usr/sbin/logrotate /etc/logrotate.conf
Type man test in Google and it will find you a manual page that says this:
man test
'-x file' True if file is executable.