Terraform

Explain the following condition: var.x ? 1 : 0

Difficulty: unrated

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

Answer

If x evaluated to true, the result is 1, otherwise (if false) the result is 0.