As an example, this is what Archie has in the BasicLabel:
If (String.Compare(m_Value, "True", True) = 0) Then
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then ResultText = "On"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then ResultText = "Yes"
If m_BooleanDisplay = BooleanDisplayOption.TrueFalse Then ResultText = "True"
If m_BooleanDisplay = BooleanDisplayOption.OneZero Then ResultText = "1"
ElseIf (String.Compare(m_Value, "False", True) = 0) Then
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then ResultText = "Off"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then ResultText = "No"
If m_BooleanDisplay = BooleanDisplayOption.TrueFalse Then ResultText = "False"
If m_BooleanDisplay = BooleanDisplayOption.OneZero Then ResultText = "0"
Which is pretty much: if True then 1 else if False then 0.