diff --git a/tconfpy.3 b/tconfpy.3 index 1dbe39e..92b18bb 100644 --- a/tconfpy.3 +++ b/tconfpy.3 @@ -420,10 +420,13 @@ the variable to that value: It passed the \'LegalVals\' validation but failed it for \'Min\'. -One last note here concerns Boolean variables. Booleans -are actually stored in the symbol table as True or False. -However, \*(TC accepts user statements in a number of -formats to do this: + +.SS Some Notes On Boolean Variables + +One last note here concerns Boolean variables. Booleans are actually +stored in the symbol table as the Python values, True or False. +However, \*(TC accepts user statements that set the value of the +boolean in a number of formats: .nf @@ -440,6 +443,22 @@ This is the one case where \*(TC is insensitive to case - "tRUE", "TRUE", and "true" are all accepted, for example. +.B NOTE HOWEVER: +If the user wants to do a conditional test on the value of +a boolean they +.B must +observe case and test for either \'True\' or \'False\': + +.nf + + .if [boolvar] != False # This works fine + + .if [boolvar] != FALSE # This does not work - Case is not being observed + + .if [boolvar] != Off # Neither does this - Only True and False can be tested + +.fi + .SS How The \*(TC Parser Validates The Initial Symbol Table