Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow multiline conditionals#51

Merged
aoskotsky-amplify merged 3 commits into
amplify-education:masterfrom
stpierre:allow-multiline-conditionals
Dec 25, 2020
Merged

Allow multiline conditionals#51
aoskotsky-amplify merged 3 commits into
amplify-education:masterfrom
stpierre:allow-multiline-conditionals

Conversation

@stpierre

Copy link
Copy Markdown
Contributor

Terraform allows a ternary to be split among multiple lines, with comments interspersed. For instance:

count = (
  var.tgw_name == "" ?  # put a comment here for fun
  0 :
  var.number_of_az
)

Previously, the grammar only supported single-line ternary expressions.

@aoskotsky-amplify

Copy link
Copy Markdown
Member

Nice catch @stpierre. I'll try to get this merged soon. Thanks!

@aoskotsky-amplify aoskotsky-amplify merged commit 0aa13e2 into amplify-education:master Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants