Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Expression/Condition in parameter default value #36

Open
jnevins-gcm opened this issue Aug 10, 2018 · 2 comments
Open

Expression/Condition in parameter default value #36

jnevins-gcm opened this issue Aug 10, 2018 · 2 comments

Comments

@jnevins-gcm
Copy link

Is there a way to make a parameter defaultValue conditional/based on an expression?

I want to have


		"fileToRename": {
			"type": "parameter",
			"datatype": "string",
                        "defaultValue": "if(boolParam) then TheSpecialFile.txt else TheFile.txt",
			"replaces": "TheFile.txt",
			"fileRename": "TheFile.txt"
		},
@jnevins-gcm
Copy link
Author

Hi, is there anyone that can reply to this? A simple yes/no would suffice.

@sayedihashimi
Copy link
Member

Hi @jnevins-gcm can you post this to https://github.com/dotnet/templating/issues instead of here? You're much more likely to get a timely reply there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants