Closed mailsanchu closed 10 months ago
Hi, no you cannot have multiple conditions on one line but you can use the shell's conjunction operator to do away with a nested if:
$ if datetest today --get "$current" -i "$f" && datetest today --lt "$(...)"; then
...
Cool thanks Closing the ticket
I want to test a given date between 2 dates. Currently, I am doing two conditions. Is it possible to combine the two if conditions?