Things3 and AppleScript?

Has anyone used AppleScript with Things3?

I have been using with Keyboard Maestro. I found their AppleScript resource PDF. But I can’t figure out how to use if/then statements with Things and AppleScript. Maybe it just can’t be done. Anyone know?