Feb-21-2017, 09:30 PM
(Feb-21-2017, 04:50 PM)micseydel Wrote: I can see how this is somewhat surprising but it does seem consistent
Output:>>> True + True + False + True 3
There is also the alternative to
x=value_if_true if some_boolean else value_if_false
: x=[value_if_false,value_if_true][some_boolean]
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net