the key to writing it:
each condition, requires the full statement, for examples:
(remember that parenthesis can be used to specify the desired order of operations, just like you use them in math equations to do that)
conditional statement 1: GetBoolean (paper, "cut")
conditional statement 2: GetBoolean (paper, "folded")
conditional statement 3: GetBoolean (paper, "stained")
etc etc etc
then it's just a matter of using the logic operators to connect them in the desired way:
(remember that 'and/or' only compares two conditions, one to its left and one to its right)
and: both conditions must be true, for it to be TRUE
or: at least only one condition must be true, for it to be TRUE
------
not: (negation); true->FALSE, false->TRUE
(remember that 'not' only compares one condition, the condition that is on its right side)
for examples (only a few out of tons of combinations):
if (GetBoolean (paper, "cut") and GetBoolean (paper, "folded")) { /* scripts */ }
f (GetBoolean (paper, "cut") or GetBoolean (paper, "folded")) { /* scripts */ }
if (GetBoolean (paper, "cut") and GetBoolean (paper, "folded") and GetBoolean (paper, "stained")) { /* scripts */ }
if (GetBoolean (paper, "cut") or GetBoolean (paper, "folded") or GetBoolean (paper, "stained")) { /* scripts */ }
if ((GetBoolean (paper, "cut") and GetBoolean (paper, "folded")) or GetBoolean (paper, "stained")) { /* scripts */ }
if (GetBoolean (paper, "cut") and (GetBoolean (paper, "folded") or GetBoolean (paper, "stained"))) { /* scripts */ }
if ((GetBoolean (paper, "cut") or GetBoolean (paper, "folded")) and GetBoolean (paper, "stained")) { /* scripts */ }
if (GetBoolean (paper, "cut") or (GetBoolean (paper, "folded") and GetBoolean (paper, "stained"))) { /* scripts */ }
though, this requires boolean logic knowledge, and can be very confusing if you don't keep it simple, lol:
https://en.wikipedia.org/wiki/Truth_tableall code (booleans, characters/symbols, and numeric values) gets reduced to binary (zeroes and ones), which is logical(imaginary/concept)/software ~ (programming), is matched up (somehow) with circuitry/electricity/currents (real/physical/hardware) which gives us the "magic" of computers' and their software/logic (programming):
https://en.wikipedia.org/wiki/Logic_gate (the 2nd half of my 101 assembly language and computer architecture class deals with this stuff, I'm scared, lol, see the logic gate diagrams below!)
google search (images): logic gate diagrams
(
http://www.google.com/search?q=logic+ga ... gbwQYhEUsQ )
ask if got any questions