ifQ refers to a single question, and is always followed by some kind of evaluation or comparison that checks to see how the question was answered, or that compares its answer to the answer of some other question.

.appear (Section(2));  

Every statement in Rulez starts with ifQ – even if the statement doesn't refer to a question. For example, if you are making a rule based on a wave, it would look something like:

.waveIs (Dinner)
.disappear (Q(101));



.andQ and .orQ both refer to a single question. They are used when you want to create a Rule that checks if two different things are both true (for .andQ), or if either is true (for .orQ). They always follow an ifq and a check/comparison, and are always followed by another check or comparison; for example:


After the second check, you would put the action that you want to take if both checks are true (for .andQ) or if either check is true (for .orQ).


.andifQ and .orifQ are used for complex conditions that can't be done with .andQ or .orQ. They work the same way that parentheses are used in math: they group conditions so that you can evaluate them as a group. If you are doing two simple checks, .andQ or .orQ will work, but if you need to do something like "if question 10 was answered, and if both question 20 and question 30 were answered No", that's when you need .andifQ and .orifQ.