Does BASH count? :|
if [! -d './directory']; then
Sorry but it's ugly only because it's wrong (there should have been additional spaces before and after square brackets) ;)
The BASH is powerful and its syntax allows to write easy to read code. It just needs some rules to follow. For instance, there can be found a quite good Shell Style Guide from Google
In this particular example, it could be written even simpler
[[ -d directory ]] && echo yep || echo nope
That is going to be very helpful! Thank you.
It's beautiful, IMO. <3