blob: 8ac863c828f9c2a16e7e9f70cc982ae15318bf98 [file] [log] [blame] [view]
`echoifempty` is a utility that echoes the value of `<a>` if `<str>` is empty, echoes the value of `<b>` otherwise.
```text
Usage:
ops -echoifempty <str> <a> <b>
```
## Example
```bash
ops -echoifempty "not empty string" "string is empty" "string is not empty"
```