Hi
Currently, multiline condition is not supported and i think it can be good to have this feature.
Let's take an example
this works using Bash
test.sh
[ -f /tmp/a ] && \
[ -f /tmp/b ] && { echo yes; } \
|| echo no
and this works in python:
test.py
t = 1
s = "hellos"
if 2 > t and \
s == "hello":
print("ok")
else:
print("no")
But this not works in terraform for example:
# variables.tf
variable "hello" {
type = string
validation {
condition = length(var.hello) > 0 && \
length(var.hello) < 128
error_message = "NO"
}
}