Closed aniham closed 5 years ago
Any updates on this? This feature would be quite handy.
The plugin does not support ElseIf, but it can be achieved by writing multiple If conditions. Eg
- If: '"${self:custom.stage}" == "prod"'
Set:
someVal: 'prod'
- If: '"${self:custom.stage}" == "stg"'
Set:
someVal: 'stg'
- If: '["prod","stg"].indexOf("${self:custom.stage}") == -1 '
Set:
someVal: 'dev'
The plugin does not support ElseIf, but it can be achieved by writing multiple If conditions. Eg
- If: '"${self:custom.stage}" == "prod"' Set: someVal: 'prod' - If: '"${self:custom.stage}" == "stg"' Set: someVal: 'stg' - If: '["prod","stg"].indexOf("${self:custom.stage}") == -1 ' Set: someVal: 'dev'
Good Work.
Very neat plugin! Are there any plans to add ElseIf as in: