Seeting constant variable value on condition

Can we set the value of a const variable based on the some condition

If you can formulate the condition as a build tag, yes, no otherwise.