S
Sibylle Koczian
Am 12.06.2013 20:06, schrieb Îικόλαος ΚοÏÏας:
parentheses, that's what parentheses are for. And then it looks for '='
in the result. And that result is just one of the three values, MRAB
told you which one.
leads to a wrong result.
??? If you know it doesn't work like this, then it won't help you to
wilfully understand something you'd like to be true.
HTH
Sibylle
You didn't read MRABs explanation, did you?Whn i see:
if( x and y ):
i understand: if x expression = True AND ALSO y expression = True then
execute
if( x or y ):
i understand: if x expression = True OR y expression = True then execute
Wrong. The "'=' not in (...)" first evaluates the expression inif '=' not in ( name and month and year ):
i understand: if '=' not in name AND '=' not in month AND '=' not in year
parentheses, that's what parentheses are for. And then it looks for '='
in the result. And that result is just one of the three values, MRAB
told you which one.
Same here. You can't take the "'=' in" out of the parentheses, thatif '=' not in ( name or month or year ):
i understand: if '=' not in name OR '=' not in month OR '=' not in year
leads to a wrong result.
but i know it does not work like this, but tis is how i understand it.
??? If you know it doesn't work like this, then it won't help you to
wilfully understand something you'd like to be true.
No, this time it isn't.its like reading an English sentence
HTH
Sibylle