Sounds to me like your taking a sting, putting it into a case select, and then using a process to give it a boolean output. So, in otherwords, if said variable is eq or less then 0, the variables value would be equal to 0, and 0 to any other higher number would give said variable a boolean value of 1/true. easy way to think of this, is imagine 2 variables. One variable would be an integer, the other a boolean. Take the value of the integer, lets say call this x and have it compare to a specific set value, using <>= statements... at this point, you can determine what the value is. This can be done either through direct user input, or more probable a function within the code that passess a certain value to finally be determined its boolean value.