title: Creating an XPath Expression in SharePoint's "Add Formula Column" based on meta data
body: <p>OK, </p>
  
  <p>So this is my first post to stack overflow, and I DID search and couldn't find exactly what I was looking for with regard to my question (although I might be terrible at searching). Essentially, this is my first pass at Xpath expressions and I honestly am having a tough time creating an if/else statement.</p>
  
  <p>I have a DWVP that is displaying a list of documents from a document library on separate site. I have a column that notes whom a document is checked-out to (if it is checked-out), and if that document is checked out, I have conditional formatting that will highlight the row.</p>
  
  <p>All is well so far. I have a list of documents that have a bunch of meta data and one or two of the rows in this list is highlighted yellow because they are checked-out, and the users name is listed in the "@checkedouttouser" column.</p>
  
  <p>My issue is that I want to create another column (I'm assuming a formula column) within this DVWP that will display a link to the source document library (specifically with a view enabled that filters the content to "checked out to" [ME], but that's no issue) if the column "@checkedouttouser" has anything in it. </p>
  
  <p>My thought process here is that this new formula column will check to see if <em>anything</em> is written (or alternatively <em>not</em> written) in this column, and if so it will create a link that says "Check-In this Document". So if you look at the DVWP, you will see a yellow row that indicates that the document has been checked out, and since it is yellow and since it is checked out, the right-hand most formula column will show a link that says "Check-In this Document". </p>
  
  <p>I have never written an Xpath expression before, but got <em>somewhere</em> with the following expression:</p>
  
  <p>if /@CheckedoutToUser!=" ",</p>
  
  <p>I have a feeling it will start something like that?</p>
  
  <p>What would this expression look like?!</p>