@tokyo_0 @cazabon yes, the "and" will ensure the result of "in" is used if needed. the code is similar to:
if not Ecryption.AES:
. . . flag = False
else:
. . . flag = "FLAG" in stream
but i commonly need to check/rethink if "not" affects the whole "and" expression 😅.
regarding compile/run time, python does most things on the latter, and doesn't optimise this kind of expressions, because the language gives you too much freedom to be able to check they are valid.