ID:173546
 
I've tried this about sixty different times, and I failed miserably each time. How would I make an expression for "If X and Y and Z are all true"?

IE:
"If X and Y and Z are all true"
del(src)

I don't know if I have faulty coding or I've just been using the wrong delimiters, but an answer to this would help greatly.
if (X && Y && Z)
del src
Enigmaster2002 wrote:
I've tried this about sixty different times, and I failed miserably each time. How would I make an expression for "If X and Y and Z are all true"?

IE:
"If X and Y and Z are all true"
del(src)

I don't know if I have faulty coding or I've just been using the wrong delimiters, but an answer to this would help greatly.

<code>if(X && Y && Z) del(src)</code>

You can also do "OR" like this:

<code>if(X || Y || Z) del(src)</code>

And use paranthesis to make more interesting combinations:

<code>if((X && Y) || Z) del(src)</code>
proc/test()
if(X && Y && Z)
del src