title: How to grab the value of a radio button with Liquid?
body: <p>I'm trying to set a background color based on what text color the user sets in Shopify admin. How can I grab the value of the radio button and set the background color accordingly? I'd prefer to use Liquid, if possible.</p>
  
  <p>Here is my JSON format to display 2 radio buttons in admin:</p>
  
  <pre><code>  {
       "type":      "radio",
       "id":        "color_banner_text",
       "label":     "Text Color",
       "options": [
         { "value": "#ffffff", "label": "Light" },
         { "value": "#666666", "label": "Dark" }
       ],
       "default":   "#666666"
    }
  </code></pre>
  
  <p>And this is what I've tried so far:</p>
  
  <pre><code>&lt;div class="{% if block.settings.color_banner_text == "#ffffff" % } background-dark {% else %} background-light {% endif %}"&gt;
  </code></pre>
  
  <p>Am I missing something?</p>