title: Type True/False in Umbraco
body: <p>We want to implement a check box[Type : true/false] in an DocumemtType in Umbraco.</p>
  
  <p>Our current Project necessity is:</p>
  
  <p>an check box which will decide whether an image should be an link or popup</p>
  
  <p>The code goes this way ...</p>
  
  <pre><code>    var child= @Model;
  
      if(child.GetProperty("popUp").Value.ToString() == "1")
        {
          // true means image will act as popup
        }
       else
        {
           // false means image will act as link
        }
  </code></pre>
  
  <p><em>But the problem is an error is occurred</em> <strong>"Cannot perform runtime binding on a null reference"</strong></p>
  
  <p>I have also tried code like ,</p>
  
  <pre><code>      if (child.GetProperty("popup").Value.Equals("1"))
               {
  
               }
  </code></pre>
  
  <p>or </p>
  
  <pre><code>      if (child.GetProperty("popup").Value.ToString().Equals("1"))
               {
  
               }
  </code></pre>
  
  <p>but still not able to get it. All suggestions are welcomed .</p>