It's very similar to C or Java. I only use conditionals (if, else) and cycles (for, while).
On the rule editor you have a dictionary at the bottom, that's pretty helpful. The parameters you can select them directly from the tree by double clicking.
Try page 66 on the file.