As a followup question to my post Helm function to set value based on a variable?, and modifying the answer given in Dynamically accessing values depending on variable values in