Using a Dropdown field in a Matrix to parse a global I have two globals setup for affiliate and compensated type language - using Matrix and a dropdown I'm trying to find a way to let the user add this language in a new block.

I cannot for the life of me get the globals to parse. In my dropdown handle I've made sure to mirror the handle of the globals themselves. Then I'm using something like this:

{% case 'globals' %}
{% set legalContent = block.legalVariables %}
&lt;p&gt;&lt;em&gt;{{ legal.legalContent }}&lt;/em&gt;&lt;/p&gt;


'globals' is the block handle, 'legalVariables' is the dropdown handle and 'legal' is the global group. I've tried quite a few different variations on this, but it just spits out 'legal.affiliateLegal' which is right, but it won't parse it.

Am I missing something simple or is this not possible with globals?
UPDATE: Knowing your use case I would use a dropdown as you were inside your matrix block and then query what the chosen value was and output the relevant global field.

{% if block.dropdownValue == 'globalName' %}
   {{ globalHandle.globalField }}
{% endif %}


You won't be able to do this dynamically but as you're adding the values to the dropdown matrix field you can add each 'case' to your template?



What you're trying to do isn't the usually use case for Globals. Globals are used more to output values in your templates independently from the current context (entry or section). 

I would probably add the languages as categories and use a category field within your Matrix. This won't provide a dropdown but the UI for choosing a category has some extra features like the ability to search.

You will have the same control over the content as you do using Globals by adding fields to Categories.