How to use boolean (check box attributes) in pricing

I have a Boolean product attribute in my product. How do I use a checkboxes in my pricing formulas?

Boolean attributes have 2 states: on or off, which are represented by 1 and 0.

So, you're formula should read something like this:

(attribute_name == 1) ? (formula if checked) : (formula if unchecked)