Closed GurpreetSingh5 closed 5 years ago
How to write nested If using this? Is this feature available yet? I want to check multiple nested conditions?
You can easily achieve nested conditions by writing multiple if conditions. Eg
- If: '"${self:custom.currentStage}" == "dev"'
Set:
provider.profile: dev
- If: '"${self:custom.currentStage}" == "test"'
Set:
provider.profile: test
- If: '"${self:custom.currentStage}" != "dev" && ${self:custom.currentStage}" != "test"'
Set:
provider.profile: prod
How to write nested If using this? Is this feature available yet? I want to check multiple nested conditions?