POV-Ray : Newsgroups : povray.off-topic : Programming style question - specifically Python : Programming style question - specifically Python Server Time
29 Jul 2024 14:20:50 EDT (-0400)
  Programming style question - specifically Python  
From: Shay
Date: 17 Aug 2011 11:46:06
Message: <4e4be23e@news.povray.org>
How would I best type the following:

if long_condition1 or (long_condition2 and long_condition3):

Without making a complete, unreadable mess.

some_name = long_conditionn # bool

will not work, because I can't evaluate long_condition2 if 1 is true.

 -Shay


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.