P
Peter Lynch
Hi
I am still a beginner at Ruby, and have just arrived at this in my
learning curve.
I would like to code
not(condition1) && not(condition2)
This is accepted in irb -
not(condition1) && condition2
but this produces a syntax error
condition1 && not(condition2)
I do not get it (obviously). I do not even know what to ask in reply -
How do I code a compound condition, without introducing extra wrappers
like -
(not(condition1)) && (not(condition2))
Regards
Peter
I am still a beginner at Ruby, and have just arrived at this in my
learning curve.
I would like to code
not(condition1) && not(condition2)
This is accepted in irb -
not(condition1) && condition2
but this produces a syntax error
condition1 && not(condition2)
I do not get it (obviously). I do not even know what to ask in reply -
How do I code a compound condition, without introducing extra wrappers
like -
(not(condition1)) && (not(condition2))
Regards
Peter