Determine what your 'code' is. What things do you believe which are non-negotiable based on circumstances? For instance, do you believe that all people are inherently equal? Do you believe that certain actions are always good, and should therefore be pursued? Do you believe that dominance via violence is wrong? Etc.. Those things are your values, the things you are willing to suffer for.
Also, be aware that when you are using logic, there are values in the background. Think about it: if you have two people, or equal intelligence, one Republican, the other Democrat, they will come to radically different conclusions regarding the same issue. Why? Because their presuppositions are different. Those presuppositions are their values. Anytime you consider something having to do with people, you are using values behind your logic. Anytime you need to interpret anything, you are using values.