It's easy to work with boolean (true/false) variables in AppleScript. Here's an example of how you assign a boolean to a variable:
set a to true set b to false
Then you can use your values in if/then statements like this:
set a to true if a then display dialog a end if
Okay, not ground-breaking examples, but that's the basic AppleScript boolean syntax.