How about:
if (( ${#a} * (c <= d) + ${#b} * (c == d) )); then echo ok; else echo no; fi
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
When responding to my posts, please try to refrain from giving bureaucratic
answers.
If you have nothing useful to say, then just click Next and go on.