title: Yang Modeling Set a Field Based on Another Field
body: <p>I am writing a Yang model. Is there away to set a leaf (string or enumeration) with a value based on another field. So for example, I want to say if x then field a value is b, if z then field a value is c.</p>
  
  <p>Edit: I am new to yang and still trying to learn it, if there are any other ideas or operators I can use to solve this issue please do not hesitate to share. :D Thank you very much.</p>