title: chef only_if attribute equals true
body: <p><strong>Problem:</strong> I have a chef statement that should only run if the attribute is "true".  But it runs every time.</p>
  
  <p><strong>Expected Behavior:</strong>  When <code>default[:QuickBase_Legacy_Stack][:dotNetFx4_Install] = "false"</code> dotnet4 should not be installed.</p>
  
  <p><strong>Actual Behavior:</strong> No matter what the attribute is set to, it installs dotnet4.</p>
  
  <p><strong>My code:</strong></p>
  
  <p>attribute file:</p>
  
  <pre><code>default[:QuickBase_Legacy_Stack][:dotNetFx4_Install] = "false"
  </code></pre>
  
  <p>recipe file:</p>
  
  <pre><code>windows_package "dotnet4" do
      only_if node[:QuickBase_Legacy_Stack][:dotNetFx4_Install]=='true'
      source "#{node[:QuickBase_Legacy_Stack][:dotNetFx4_URL]}"
      installer_type :custom
      action :install
      options "/quiet /log C:\\chef\\installLog4.txt /norestart /skipmsuinstall"
  end
  </code></pre>