Terraform

Explain the following condition: var.x != "" ? var.x : "yay"

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

If x is an empty string the result is "yay", otherwise it's the value of x variable