Thread:Koppadasao/@comment-26828130-20180607142520/@comment-1744236-20180608084909

You could, but setting it up would be a nightmare

Better pass the result of another template to a new optional discount parameter in. Inside Cost you use a new #var to calculate the costs, which is passed the discount parameter, or, if it's empty, a 1